SPRAB89A September 2011 – March 2014
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 _ _C6000_isfinite(float64 x); | True iff x is a representable value |
int32 _ _C6000_isfinitef(float32 x); | True iff x is a representable value |
int32 _ _C6000_isinf(float64 x); | True iff x represents "infinity" |
int32 _ _C6000_isinff(float32 x); | True iff x represents "infinity" |
int32 _ _C6000_isnan(float64 x); | True iff x represents "not a number" |
int32 _ _C6000_isnanf(float32 x); | True iff x represents "not a number" |
int32 _ _C6000_isnormal(float64 x); | True iff x is not denormalized |
int32 _ _C6000_isnormalf(float32 x); | True iff x is not denormalized |
int32 _ _C6000_fpclassify(float64 x); | Classify floating-point value |
int32 _ _C6000_fpclassifyf(float32 x); | Classify floating-point value |
The function _ _C6000_fpclassify is for use in classifying floating-point numbers. The operation is:
int32 __C6000_fpclassify(float64 x)
{
if (isnormal(x)) return 3;
else if (isinf(x)) return 1;
else if (isnan(x)) return 2;
else return 4;
}
The following C99 functions are perform rounding and truncation toward zero.
Signature | Description |
---|---|
float64 _ _C6000_nround(float64 x); | Round to nearest integer |
float32 _ _C6000_roundf(float32 x); | Round to nearest integer |
float64 _ _C6000_trunc(float64 x); | Truncate towards zero |
float32 _ _C6000_truncf(float32 x); | Truncate towards zero |