diff options
Diffstat (limited to 'newlib/libm/machine/spu/headers/isnan.h')
-rw-r--r-- | newlib/libm/machine/spu/headers/isnan.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/isnan.h b/newlib/libm/machine/spu/headers/isnan.h new file mode 100644 index 000000000..ada7e6e8d --- /dev/null +++ b/newlib/libm/machine/spu/headers/isnan.h @@ -0,0 +1,6 @@ +#include "headers/isnand2.h" + +static __inline int _isnan(double x) +{ + return spu_extract(_isnand2(spu_promote(x, 0)), 0); +} |