uClibc: bsd supports the same floating point classification functions as c99, fixes...
[openwrt-10.03/.git] / toolchain / uClibc / patches-0.9.29 / 240-math_call.patch
1 --- a/libc/sysdeps/linux/common/bits/mathcalls.h
2 +++ b/libc/sysdeps/linux/common/bits/mathcalls.h
3 @@ -190,20 +190,20 @@
4  
5  /* Return 0 if VALUE is finite or NaN, +1 if it
6     is +Infinity, -1 if it is -Infinity.  */
7 -__MATHDECL_1 (int,__isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
8 +__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
9  
10  /* Return nonzero if VALUE is finite and not NaN.  */
11 -__MATHDECL_1 (int,__finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
12 -_Mdouble_END_NAMESPACE
13 +__MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
14  
15 -#ifdef __USE_MISC
16  /* Return 0 if VALUE is finite or NaN, +1 if it
17     is +Infinity, -1 if it is -Infinity.  */
18 -__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
19 +__MATHDECL_1 (int,__isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
20  
21  /* Return nonzero if VALUE is finite and not NaN.  */
22 -__MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
23 +__MATHDECL_1 (int,__finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
24 +_Mdouble_END_NAMESPACE
25  
26 +#ifdef __USE_MISC
27  /* Return the remainder of X/Y.  */
28  __MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y));
29