* sysdeps/m68k/fpu/s_finite.c: Add internal alias.
[glibc.git] / include / math.h
blob2a694300b7aaa5842ea4c62e3121ad999e4e634f
1 #ifndef _MATH_H
3 #include <math/math.h>
5 /* Now define the internal interfaces. */
6 extern int __matherr (struct exception *__exc);
8 extern int __finite_internal (double __value)
9 __attribute__ ((__const__)) attribute_hidden;
10 extern int __finitef_internal (float __value)
11 __attribute__ ((__const__)) attribute_hidden;
12 extern int __finitel_internal (long double __value)
13 __attribute__ ((__const__)) attribute_hidden;
15 #if !defined NOT_IN_libc || defined IS_IN_libm
16 # undef isfinite
17 # ifdef __NO_LONG_DOUBLE_MATH
18 # define isfinite(x) \
19 (sizeof (x) == (sizeof (float) \
20 ? INTUSE(__finitef) (x) : INTUSE(__finite) (x)))
21 # else
22 # define isfinite(x) \
23 (sizeof (x) == sizeof (float) \
24 ? INTUSE(__finitef) (x) \
25 : sizeof (x) == sizeof (double) \
26 ? INTUSE(__finite) (x) : INTUSE(__finitel) (x))
27 # endif
28 #endif
31 #endif