SLAA534A June 2013 – June 2020
These functions are unimplemented, but the names are reserved for use by a C99 compiler. The TI library does not currently implement these functions. The API relating to C99 is subject to change.
Signature | Description |
---|---|
int32 _ _MSP430_isfinite(float64 x); | True iff x is a representable value |
int32 _ _MSP430_isfinitef(float32 x); | True iff x is a representable value |
int32 _ _MSP430_isinf(float64 x); | True iff x represents "infinity" |
int32 _ _MSP430_isinff(float32 x); | True iff x represents "infinity" |
int32 _ _MSP430_isnan(float64 x); | True iff x represents "not a number" |
int32 _ _MSP430_isnanf(float32 x); | True iff x represents "not a number" |
int32 _ _MSP430_isnormal(float64 x); | True iff x is not denormalized |
int32 _ _MSP430_isnormalf(float32 x); | True iff x is not denormalized |
int32 _ _MSP430_fpclassify(float64 x); | Classify floating-point value |
int32 _ _MSP430_fpclassifyf(float32 x); | Classify floating-point value |
The function _ _MSP430_fpclassify is for use in classifying floating-point numbers. The operation is:
int32 __MSP430_fpclassify(float64 x)
{
if (isnormal(x)) return 3;
else if (isinf(x)) return 1;
else if (isnan(x)) return 2;
else return 4;
}