1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef _MATH_H
- # error "Never use <bits/huge_vall.h> directly; include <math.h> instead."
- #endif
- #if __GNUC_PREREQ(3,3)
- # define HUGE_VALL (__builtin_huge_vall())
- #else
- # include <bits/wordsize.h>
- # if __WORDSIZE == 32
- # define HUGE_VALL ((long double) HUGE_VAL)
- # elif __GNUC_PREREQ(2,96)
- # define HUGE_VALL (__extension__ 0x1.0p32767L)
- # elif defined __GNUC__
- # define HUGE_VALL \
- (__extension__ \
- ((union { struct { unsigned long __h, __l; } __i; long double __d; }) \
- { __i: { __h: 0x7fff000000000000UL, __l: 0 } }).__d)
- # else
- typedef union { unsigned char __c[16]; long double __d; } __huge_vall_t;
- # define __HUGE_VALL_bytes { 0x7f, 0xff, 0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- static __huge_vall_t __huge_vall = { __HUGE_VALL_bytes };
- # define HUGE_VALL (__huge_vall.__d)
- # endif
- #endif
|