Lines 118-124
__BEGIN_DECLS
Link Here
|
118 |
# undef __MATH_PRECNAME |
118 |
# undef __MATH_PRECNAME |
119 |
|
119 |
|
120 |
# if (__STDC__ - 0 || __GNUC__ - 0) \ |
120 |
# if (__STDC__ - 0 || __GNUC__ - 0) \ |
121 |
&& (defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ || defined __LDBL_COMPAT) |
121 |
&& (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT) |
122 |
# ifdef __LDBL_COMPAT |
122 |
# ifdef __LDBL_COMPAT |
123 |
|
123 |
|
124 |
# ifdef __USE_ISOC99 |
124 |
# ifdef __USE_ISOC99 |
Lines 230-236
enum
Link Here
|
230 |
}; |
230 |
}; |
231 |
|
231 |
|
232 |
/* Return number of classification appropriate for X. */ |
232 |
/* Return number of classification appropriate for X. */ |
233 |
# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
233 |
# ifdef __NO_LONG_DOUBLE_MATH |
234 |
# define fpclassify(x) \ |
234 |
# define fpclassify(x) \ |
235 |
(sizeof (x) == sizeof (float) ? __fpclassifyf (x) : __fpclassify (x)) |
235 |
(sizeof (x) == sizeof (float) ? __fpclassifyf (x) : __fpclassify (x)) |
236 |
# else |
236 |
# else |
Lines 242-248
enum
Link Here
|
242 |
# endif |
242 |
# endif |
243 |
|
243 |
|
244 |
/* Return nonzero value if sign of X is negative. */ |
244 |
/* Return nonzero value if sign of X is negative. */ |
245 |
# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
245 |
# ifdef __NO_LONG_DOUBLE_MATH |
246 |
# define signbit(x) \ |
246 |
# define signbit(x) \ |
247 |
(sizeof (x) == sizeof (float) ? __signbitf (x) : __signbit (x)) |
247 |
(sizeof (x) == sizeof (float) ? __signbitf (x) : __signbit (x)) |
248 |
# else |
248 |
# else |
Lines 254-260
enum
Link Here
|
254 |
# endif |
254 |
# endif |
255 |
|
255 |
|
256 |
/* Return nonzero value if X is not +-Inf or NaN. */ |
256 |
/* Return nonzero value if X is not +-Inf or NaN. */ |
257 |
# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
257 |
# ifdef __NO_LONG_DOUBLE_MATH |
258 |
# define isfinite(x) \ |
258 |
# define isfinite(x) \ |
259 |
(sizeof (x) == sizeof (float) ? __finitef (x) : __finite (x)) |
259 |
(sizeof (x) == sizeof (float) ? __finitef (x) : __finite (x)) |
260 |
# else |
260 |
# else |
Lines 270-276
enum
Link Here
|
270 |
|
270 |
|
271 |
/* Return nonzero value if X is a NaN. We could use `fpclassify' but |
271 |
/* Return nonzero value if X is a NaN. We could use `fpclassify' but |
272 |
we already have this functions `__isnan' and it is faster. */ |
272 |
we already have this functions `__isnan' and it is faster. */ |
273 |
# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
273 |
# ifdef __NO_LONG_DOUBLE_MATH |
274 |
# define isnan(x) \ |
274 |
# define isnan(x) \ |
275 |
(sizeof (x) == sizeof (float) ? __isnanf (x) : __isnan (x)) |
275 |
(sizeof (x) == sizeof (float) ? __isnanf (x) : __isnan (x)) |
276 |
# else |
276 |
# else |
Lines 282-288
enum
Link Here
|
282 |
# endif |
282 |
# endif |
283 |
|
283 |
|
284 |
/* Return nonzero value is X is positive or negative infinity. */ |
284 |
/* Return nonzero value is X is positive or negative infinity. */ |
285 |
# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
285 |
# ifdef __NO_LONG_DOUBLE_MATH |
286 |
# define isinf(x) \ |
286 |
# define isinf(x) \ |
287 |
(sizeof (x) == sizeof (float) ? __isinff (x) : __isinf (x)) |
287 |
(sizeof (x) == sizeof (float) ? __isinff (x) : __isinf (x)) |
288 |
# else |
288 |
# else |