mathieeedoubbas.library Reference¶
Comprehensive function reference for mathieeedoubbas.library, synthesised from the AmigaOS NDK 3.2 Release 4 (Autodocs/AG/mathieeedoubbas).
This page documents 12 functions of mathieeedoubbas.library. Each function entry follows the canonical autodoc format. struct Name, union Name, enum Name are clickable links to the type definition in the types reference.
Function index¶
IEEEDPAbs()IEEEDPAdd()IEEEDPCeil()IEEEDPCmp()IEEEDPDiv()IEEEDPFix()IEEEDPFloor()IEEEDPFlt()IEEEDPMul()IEEEDPNeg()IEEEDPSub()IEEEDPTst()
IEEEDPAbs()¶
IEEEDPAbs -- compute absolute value of IEEE double precision argument
Synopsis
x = IEEEDPAbs( y );
d0/d1 d0/d1
double x,y;
Function
Take the absolute value of argument y and return it to caller.
Inputs
y -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
IEEEDPAdd()¶
IEEEDPAdd -- add one double precision IEEE number to another
Synopsis
x = IEEEDPAdd( y , z );
d0/d1 d0/d1 d2/d3
double x,y,z;
Function
Compute x = y + z in IEEE double precision.
Inputs
y -- IEEE double precision floating point value z -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
See also
IEEEDPCeil()¶
IEEEDPCeil -- compute Ceil function of IEEE double precision number
Synopsis
x = IEEEDPCeil( y );
d0/d1 d0/d1
double x,y;
Function
Calculate the least integer greater than or equal to x and return it. This value may have more than 32 bits of significance. This identity is true. Ceil(x) = -Floor(-x).
Inputs
y -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
See also
IEEEDPCmp()¶
IEEEDPCmp -- compare two double precision floating point numbers
Synopsis
c = IEEEDPCmp( y , z );
d0 d0/d1 d2/d3
double y,z;
long c;
Function
Compare y with z. Set the condition codes for less, greater, or
equal. Set return value c to -1 if y
Inputs
y -- IEEE double precision floating point value z -- IEEE double precision floating point value
Results
c = 1 cc = gt for (y > z) c = 0 cc = eq for (y == z) c = -1 cc = lt for (y < z)
Bugs
did not compare correctly if negative and the MSB of the mantissae were equal. fixed.
IEEEDPDiv()¶
IEEEDPDiv -- divide one double precision IEEE by another
Synopsis
x = IEEEDPDiv( y , z );
d0/d1 d0/d1 d2/d3
double x,y,z;
Function
Compute x = y / z in IEEE double precision.
Inputs
y -- IEEE double precision floating point value z -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
See also
IEEEDPFix()¶
IEEEDPFix -- convert IEEE double float to integer
Synopsis
x = IEEEDPFix( y );
d0 d0/d1
long x;
double y;
Function
Convert IEEE double precision argument to a 32 bit signed integer and return result.
Inputs
y -- IEEE double precision floating point value
Results
if no overflow occured then return x -- 32 bit signed integer if overflow return largest +- integer For round to zero
See also
IEEEDPFloor()¶
IEEEDPFloor -- compute Floor function of IEEE double precision number
Synopsis
x = IEEEDPFloor( y );
d0/d1 d0/d1
double x,y;
Function
Calculate the largest integer less than or equal to x and return it. This value may have more than 32 bits of significance.
Inputs
y -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
See also
IEEEDPFlt()¶
IEEEDPFlt -- convert integer to IEEE double precision number
Synopsis
x = IEEEDPFlt( y );
d0/d1 d0
double x;
long y;
Function
Convert a signed 32 bit value to a double precision IEEE value and return it in d0/d1. No exceptions can occur with this function.
Inputs
y -- 32 bit integer in d0
Results
x is a 64 bit double precision IEEE value
See also
IEEEDPMul()¶
IEEEDPMul -- multiply one double precision IEEE number by another
Synopsis
x = IEEEDPMul( y , z );
d0/d1 d0/d1 d2/d3
double x,y,z;
Function
Compute x = y * z in IEEE double precision.
Inputs
y -- IEEE double precision floating point value z -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
See also
IEEEDPNeg()¶
IEEEDPNeg -- compute negative value of IEEE double precision number
Synopsis
x = IEEEDPNeg( y );
d0/d1 d0/d1
double x,y;
Function
Invert the sign of argument y and return it to caller.
Inputs
y - IEEE double precision floating point value
Results
x - IEEE double precision floating point value
IEEEDPSub()¶
IEEEDPSub -- subtract one double precision IEEE number from another
Synopsis
x = IEEEDPSub( y , z );
d0/d1 d0/d1 d2/d3
double x,y,z;
Function
Compute x = y - z in IEEE double precision.
Inputs
y -- IEEE double precision floating point value z -- IEEE double precision floating point value
Results
x -- IEEE double precision floating point value
See also
IEEEDPTst()¶
IEEEDPTst -- compare IEEE double precision value to 0.0
Synopsis
c = IEEEDPTst( y );
d0 d0/d1
double y;
long c;
Function
Compare y to 0.0, set the condition codes for less than, greater than, or equal to 0.0. Set the return value c to -1 if less than, to +1 if greater than, or 0 if equal to 0.0.
Inputs
y -- IEEE double precision floating point value
Results
c = 1 cc = gt for (y > 0.0) c = 0 cc = eq for (y == 0.0) c = -1 cc = lt for (y < 0.0)