AROSAmiga Research OS

Previous Next Top of Manual blank.gif

AROS - The Amiga Research OS


Documentation
    AutoDocs
        Exec.library
        MathFFP.library
        MathIEEEDoubleBase
        MathIEEEDoubleTrans
        MathIEEESingleBase
            IEEESPTst
            IEEESPCmp
            IEEESPMul
            IEEESPAbs
            IEEESPFlt
            IEEESPCeil
            IEEESPFloor
            IEEESPDiv
            IEEESPNeg
            IEEESPSub
            IEEESPFix
            IEEESPAdd
        MathIEEESingleTrans
        MathTrans
NAME
#include <libraries/mathieeesp.h>
#include <aros/libcall.h>
#include <proto/mathieeesingbas.h>
#include <proto/exec.h>
#include <exec/types.h>

float IEEESPDiv ()

SYNOPSIS
float y
float z

FUNCTION
Divide two IEEE single precision floating point numbers x = y / z;
INPUTS
y
IEEEE single precision floating point
z
IEEEE single precision floating point

RESULT
Flags: zero : result is zero negative : result is negative overflow : result is out of range
NOTES
EXAMPLE

BUGS
SEE ALSO
MathIEEESingleBase

INTERNALS
ALGORITHM:

Check if fnum2 == 0: result = 0;

Check if fnum1 == 0: result = overflow;

The further algorithm comes down to a pen & paper division.


Previous Next Top of Manual blank.gif
minilogo.gif

Amiga® is a trademark of Amiga Inc. All other trademarks belong to their respective owners.

Copyright © AROS - The Amiga Research OS
All Rights Reserved
Comments to webmaster: digulla@aros.org
Generated: Tue Sep 4, 2001