summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-31 03:02:00 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-31 03:02:00 +0100
commit195931714a882765af150167115dcc9077da2213 (patch)
treeb69a32ea49d0aba29764a84425db248c002ec551 /libm
parentd726ada135fa7324b44b47d1d5fcf3f5317d343c (diff)
libm: remove int_WRAPPER_C99 macro, add test which checks that I did not break it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libm')
-rw-r--r--libm/ldouble_wrappers.c48
1 files changed, 21 insertions, 27 deletions
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c
index 80c9ed8b6..e2d4d8036 100644
--- a/libm/ldouble_wrappers.c
+++ b/libm/ldouble_wrappers.c
@@ -122,17 +122,6 @@ long long func##l(long double x) \
}
#endif /* __i386__ && __OPTIMIZE__ */
-#if defined __NO_LONG_DOUBLE_MATH
-# define int_WRAPPER_C99(func) /* not needed */
-# else
-# define int_WRAPPER_C99(func) \
-int func##l(long double x) \
-{ \
- return func((double) x); \
-} \
-libm_hidden_def(func##l)
-#endif
-
/* Implement the following, as defined by SuSv3 */
#if 0
long double acoshl(long double);
@@ -508,26 +497,31 @@ long double significandl(long double x)
}
#endif
-#ifdef __DO_C99_MATH__
+#if defined __DO_C99_MATH__ && !defined __NO_LONG_DOUBLE_MATH
-#ifdef L___fpclassifyl
-int_WRAPPER_C99(__fpclassify)
-#endif
+# ifdef L___fpclassifyl
+int_WRAPPER1(__fpclassify)
+libm_hidden_def(__fpclassifyl)
+# endif
-#ifdef L___finitel
-int_WRAPPER_C99(__finite)
-#endif
+# ifdef L___finitel
+int_WRAPPER1(__finite)
+libm_hidden_def(__finitel)
+# endif
-#ifdef L___signbitl
-int_WRAPPER_C99(__signbit)
-#endif
+# ifdef L___signbitl
+int_WRAPPER1(__signbit)
+libm_hidden_def(__signbitl)
+# endif
-#ifdef L___isnanl
-int_WRAPPER_C99(__isnan)
-#endif
+# ifdef L___isnanl
+int_WRAPPER1(__isnan)
+libm_hidden_def(__isnanl)
+# endif
-#ifdef L___isinfl
-int_WRAPPER_C99(__isinf)
-#endif
+# ifdef L___isinfl
+int_WRAPPER1(__isinf)
+libm_hidden_def(__isinfl)
+# endif
#endif