|
|
- NAME
- #include <libraries/mathieeesp.h>
#include <aros/libcall.h>
#include <proto/mathieeesingbas.h>
#include <proto/exec.h>
#include <exec/types.h>
LONG IEEESPTst ()
- SYNOPSIS
- float y
- FUNCTION
- Compare a ieeesp-number against zero.
- INPUTS
- y
- IEEEE single precision floating point
- RESULT
+1 : y > 0.0
0 : y = 0.0
-1 : y < 0.0
Flags:
zero : result is zero
negative : result is negative
overflow : 0
- NOTES
-
- EXAMPLE
- BUGS
-
- SEE ALSO
- MathIEEESingleBase
- INTERNALS
- ALGORITHM:
Sign is negative: return -1
y == 0 : return 0
Otherwise : return 1
|