123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef _MATH_H
- # error "Never use <bits/huge_val.h> directly; include <math.h> instead."
- #endif
- #if __GNUC_PREREQ(3,3)
- # define HUGE_VALL (__builtin_huge_vall ())
- #elif __GNUC_PREREQ(2,96)
- # define HUGE_VALL (__extension__ 0x1.0p32767L)
- #elif defined __GNUC__
- # define HUGE_VALL \
- (__extension__ \
- ((union { unsigned long __l[3]; long double __ld; }) \
- { __l: { 0x7fff0000UL, 0x80000000UL, 0UL } }).__ld)
- #else
- static union { unsigned char __c[12]; long double __ld; } __huge_vall =
- { { 0x7f, 0xff, 0, 0, 0x80, 0, 0, 0, 0, 0, 0, 0 } };
- # define HUGE_VALL (__huge_vall.__ld)
- #endif
|