mathieeesingbas.library Reference

Comprehensive function reference for mathieeesingbas.library, synthesised from the AmigaOS NDK 3.2 Release 4 (Autodocs/AG/mathieeesingbas).

This page documents 12 functions of mathieeesingbas.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


IEEESPAbs()

IEEESPAbs -- compute absolute value of IEEE single precision argument

Synopsis

x = IEEESPAbs( y ); d0 d0

float x,y;

Function

Take the absolute value of argument y and return it to caller.

Inputs

y -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value


IEEESPAdd()

IEEESPAdd -- add one single precision IEEE number to another

Synopsis

x = IEEESPAdd( y , z ); d0 d0 d1

float x,y,z;

Function

Compute x = y + z in IEEE single precision.

Inputs

y -- IEEE single precision floating point value z -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value

See also

IEEESPSub()


IEEESPCeil()

IEEESPCeil -- compute Ceil function of IEEE single precision number

Synopsis

x = IEEESPCeil( y ); d0 d0

float x,y;

Function

Calculate the least integer greater than or equal to x and return it. This identity is true. Ceil(x) = -Floor(-x).

Inputs

y -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value

See also

IEEESPFloor()


IEEESPCmp()

IEEESPCmp -- compare two single precision floating point numbers

Synopsis

c = IEEESPCmp( y , z ); d0 d0 d1

float 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 yz, or 0 if y == z.

Inputs

y -- IEEE single precision floating point value z -- IEEE single 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)


IEEESPDiv()

IEEESPDiv -- divide one single precision IEEE by another

Synopsis

x = IEEESPDiv( y , z ); d0 d0 d1

float x,y,z;

Function

Compute x = y / z in IEEE single precision. Note that the Motorola fast floating point Div routine reverses the order of the arguments for the C interface, although the dividend is still in d0 and the divisor is in d1.

Inputs

y -- IEEE single precision floating point value z -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value

See also

IEEESPMul()


IEEESPFix()

IEEESPFix -- convert IEEE single float to integer

Synopsis

x = IEEESPFix( y ); d0 d0

long x; float y;

Function

Convert IEEE single precision argument to a 32 bit signed integer and return result.

Inputs

y -- IEEE single 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

IEEESPFlt()


IEEESPFloor()

IEEESPFloor -- compute Floor function of IEEE single precision number

Synopsis

x = IEEESPFloor( y ); d0 d0

float x,y;

Function

Calculate the largest integer less than or equal to x and return it.

Inputs

y -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value

See also

IEEESPCeil()


IEEESPFlt()

IEEESPFlt -- convert integer to IEEE single precision number

Synopsis

x = IEEESPFlt( y ); d0 d0

float x; long y;

Function

Convert a signed 32 bit value to a single precision IEEE value and return it in d0. No exceptions can occur with this function.

Inputs

y -- 32 bit integer in d0

Results

x is a 32 bit single precision IEEE value

See also

IEEESPFix()


IEEESPMul()

IEEESPMul -- multiply one double precision IEEE number by another

Synopsis

x = IEEESPMul( y , z ); d0 d0 d1

float x,y,z;

Function

Compute x = y * z in IEEE single precision.

Inputs

y -- IEEE single precision floating point value z -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value

See also

IEEESPDiv()


IEEESPNeg()

IEEESPNeg -- compute negative value of IEEE single precision number

Synopsis

x = IEEESPNeg( y ); d0 d0

float x,y;

Function

Invert the sign of argument y and return it to caller.

Inputs

y - IEEE single precision floating point value

Results

x - IEEE single precision floating point value


IEEESPSub()

IEEESPSub -- subtract one single precision IEEE number from another

Synopsis

x = IEEESPSub( y , z ); d0 d0 d1

float x,y,z;

Function

Compute x = y - z in IEEE single precision.

Inputs

y -- IEEE single precision floating point value z -- IEEE single precision floating point value

Results

x -- IEEE single precision floating point value

See also

IEEESPAdd()


IEEESPTst()

IEEESPTst -- compare IEEE single precision value to 0.0

Synopsis

c = IEEESPTst( y ); d0 d0

float 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 single 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)