Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/include/math.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (35 sloc)
1.3 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |