1 From 650380248eaad577445c88b7314307d3acd166fc Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@openadk.org>
3 Date: Sat, 25 Apr 2015 07:09:40 -0500
4 Subject: [PATCH] Revert "Do not define unimplemented functions"
6 This reverts commit bd3eaf83ef1b4954b6c0e7ba8bbdd29b2cd4a833.
8 They are now implemented.
10 Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
13 libc/sysdeps/linux/common/bits/mathcalls.h | 18 ------------------
14 2 files changed, 20 deletions(-)
16 diff --git a/include/math.h b/include/math.h
17 index c79af3f..1b54c9e 100644
20 @@ -118,7 +118,6 @@ __BEGIN_DECLS
21 # define _Mfloat_ float
23 # define _Mdouble_ _Mfloat_
24 -# define _Mdouble_is_float_
26 # define __MATH_PRECNAME(name,r) name##f##r
28 @@ -127,7 +126,6 @@ __BEGIN_DECLS
29 # define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99
30 # define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99
31 # include <bits/mathcalls.h>
32 -# undef _Mdouble_is_float_
34 # undef _Mdouble_BEGIN_NAMESPACE
35 # undef _Mdouble_END_NAMESPACE
36 diff --git a/libc/sysdeps/linux/common/bits/mathcalls.h b/libc/sysdeps/linux/common/bits/mathcalls.h
37 index 3d7e34f..9bebb51 100644
38 --- a/libc/sysdeps/linux/common/bits/mathcalls.h
39 +++ b/libc/sysdeps/linux/common/bits/mathcalls.h
40 @@ -291,9 +291,7 @@ __END_NAMESPACE_C99
43 /* True gamma function. */
44 -# ifndef _Mdouble_is_float_
45 __MATHCALLI (tgamma,, (_Mdouble_))
50 @@ -324,9 +322,7 @@ __MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__))
51 libm_hidden_proto(nextafterl)
53 # if defined __USE_ISOC99 && !defined __LDBL_COMPAT
54 -# ifndef _Mdouble_is_float_
55 __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__))
59 /* Return the remainder of integer divison X / Y with infinite precision. */
60 @@ -343,15 +339,11 @@ __MATHDECLI (int,ilogb,, (_Mdouble_ __x))
63 /* Return X times (2 to the Nth power). */
64 -# ifndef _Mdouble_is_float_
65 __MATHCALLI (scalbln,, (_Mdouble_ __x, long int __n))
68 /* Round X to integral value in floating-point format using current
69 rounding direction, but do not raise inexact exception. */
70 -# ifndef _Mdouble_is_float_
71 __MATHCALLI (nearbyint,, (_Mdouble_ __x))
74 /* Round X to nearest integral value, rounding halfway cases away from
76 @@ -364,9 +356,7 @@ __MATHCALLX (trunc,, (_Mdouble_ __x), (__const__))
77 /* Compute remainder of X and Y and put in *QUO a value with sign of x/y
78 and magnitude congruent `mod 2^n' to the magnitude of the integral
79 quotient x/y, with n >= 3. */
80 -# ifndef _Mdouble_is_float_
81 __MATHCALLI (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo))
85 /* Conversion functions. */
86 @@ -383,19 +373,13 @@ __MATHDECLI (long long int,llround,, (_Mdouble_ __x))
89 /* Return positive difference between X and Y. */
90 -# ifndef _Mdouble_is_float_
91 __MATHCALLI (fdim,, (_Mdouble_ __x, _Mdouble_ __y))
94 /* Return maximum numeric value from X and Y. */
95 -# ifndef _Mdouble_is_float_
96 __MATHCALLI (fmax,, (_Mdouble_ __x, _Mdouble_ __y))
99 /* Return minimum numeric value from X and Y. */
100 -# ifndef _Mdouble_is_float_
101 __MATHCALLI (fmin,, (_Mdouble_ __x, _Mdouble_ __y))
105 /* Classify given number. */
106 @@ -406,9 +390,7 @@ __MATHDECL_PRIV (int, signbit,, (_Mdouble_ __value), (__const__))
109 /* Multiply-add function computed as a ternary operation. */
110 -# ifndef _Mdouble_is_float_
111 __MATHCALLI (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z))
113 #endif /* Use ISO C99. */
115 #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99