a8fa494762
2002-04-15 H.J. Lu <hjl@gnu.org> * include/math.h (__finitel_internal): Declare only if __NO_LONG_DOUBLE_MATH is not defined. (__isinfl_internal): Likewise. (__isnanl_internal): Likewise. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal. * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and __fcntl_internal. * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added. * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
#ifndef _MATH_H
|
|
|
|
#include <math/math.h>
|
|
|
|
/* 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;
|
|
|
|
extern int __isinfl_internal (long double __value)
|
|
__attribute__ ((__const__)) attribute_hidden;
|
|
extern int __isnanl_internal (long double __value)
|
|
__attribute__ ((__const__)) attribute_hidden;
|
|
#endif
|
|
|
|
#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))
|
|
# endif
|
|
#endif
|
|
|
|
|
|
#endif
|