about summary refs log tree commit diff
path: root/include/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/math.h')
-rw-r--r--include/math.h51
1 files changed, 19 insertions, 32 deletions
diff --git a/include/math.h b/include/math.h
index 1dd1a1454a..1005804273 100644
--- a/include/math.h
+++ b/include/math.h
@@ -5,40 +5,27 @@
 /* Now define the internal interfaces.  */
 extern int __matherr (struct exception *__exc);
 
-extern int __finite_internal (double __value)
-     __attribute__ ((__const__)) attribute_hidden;
-extern int __finitef_internal (float __value)
-     __attribute__ ((__const__)) attribute_hidden;
-
-extern int __isinf_internal (double __value)
-     __attribute__ ((__const__)) attribute_hidden;
-extern int __isnan_internal (double __value)
-     __attribute__ ((__const__)) attribute_hidden;
-
-#ifndef __NO_LONG_DOUBLE_MATH
-extern int __finitel_internal (long double __value)
-     __attribute__ ((__const__)) attribute_hidden;
+# if !defined NOT_IN_libc || defined IS_IN_libm
+hidden_proto (__finite)
+hidden_proto (__isinf)
+hidden_proto (__isnan)
+hidden_proto (__finitef)
+hidden_proto (__isinff)
+hidden_proto (__isnanf)
+
+#  ifndef __NO_LONG_DOUBLE_MATH
+hidden_proto (__finitel)
+hidden_proto (__isinfl)
+hidden_proto (__isnanl)
+#  endif
+# endif
 
-extern int __isinfl_internal (long double __value)
-     __attribute__ ((__const__)) attribute_hidden;
-extern int __isnanl_internal (long double __value)
-     __attribute__ ((__const__)) attribute_hidden;
-#endif
+libm_hidden_proto (__fpclassify)
+libm_hidden_proto (__fpclassifyf)
 
-#if !defined NOT_IN_libc || defined IS_IN_libm
-# undef isfinite
-# ifdef __NO_LONG_DOUBLE_MATH
-#  define isfinite(x) \
-     (sizeof (x) == sizeof (float)					      \
-      ? INTUSE(__finitef) (x) : INTUSE(__finite) (x))
-# else
-#  define isfinite(x) \
-     (sizeof (x) == sizeof (float)					      \
-      ? INTUSE(__finitef) (x)						      \
-      : sizeof (x) == sizeof (double)					      \
-      ? INTUSE(__finite) (x) : INTUSE(__finitel) (x))
+# ifndef __NO_LONG_DOUBLE_MATH
+libm_hidden_proto (__fpclassifyl)
+libm_hidden_proto (__expm1l)
 # endif
-#endif
-
 
 #endif