Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libm / machine / spu / sf_fpclassify.c
blob36cf8ba90495b0444187aa4f7d0ca30a87b0d96c
1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
7 #include "fdlibm.h"
9 /*
10 * On the SPU, single precision floating point returns only FP_NORMAL and
11 * FP_ZERO, since FP_NAN, FP_INFINITE, and FP_SUBNORMAL are not
12 * supported, base on the common f_fpclassify.c.
14 int
15 __fpclassifyf (float x)
17 __uint32_t w;
19 GET_FLOAT_WORD(w,x);
21 if (w == 0x00000000 || w == 0x80000000)
22 return FP_ZERO;
23 return FP_NORMAL;