Download TR0109 TSK3000 Embedded Tools Reference

Transcript
TSK3000 Embedded Tools Reference
Classification macros
The next are implemented as macros. These macros are type generic and therefor do not have a
parallel function in tgmath.h. All arguments must be expressions of real-floating type.
Math.h
Tgmath.h
Description
fpclassify
-
Returns the class of its argument:
FP_INFINITE, FP_NAN, FP_NORMAL,
FP_SUBNORMAL or FP_ZERO
isfinite
-
Returns a nonzero value if and only if its argument
has a finite value
isinf
-
Returns a nonzero value if and only if its argument
has an infinit value
isnan
-
Returns a nonzero value if and only if its argument
has NaN value.
isnormal
-
Returns a nonzero value if an only if its argument has
a normal value.
signbit
-
Returns a nonzero value if and only if its argument
value is negative.
2.2.14 setjmp.h
The setjmp and longjmp in this header file implement a primitive form of nonlocal jumps, which may
be used to handle exceptional situations. This facility is traditionally considered more portable than
signal.h.
int setjmp(jmp_buf env)
Records its caller's environment in env and returns 0.
void longjmp(jmp_buf env,
int status)
Restores the environment previously saved with a call to
setjmp().
2-12