float.in.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* A correct <float.h>.
  2. Copyright (C) 2007-2010 Free Software Foundation, Inc.
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. #ifndef _GL_FLOAT_H
  14. #if __GNUC__ >= 3
  15. @PRAGMA_SYSTEM_HEADER@
  16. #endif
  17. /* The include_next requires a split double-inclusion guard. */
  18. #@INCLUDE_NEXT@ @NEXT_FLOAT_H@
  19. #ifndef _GL_FLOAT_H
  20. #define _GL_FLOAT_H
  21. /* 'long double' properties. */
  22. #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
  23. /* Number of mantissa units, in base FLT_RADIX. */
  24. # undef LDBL_MANT_DIG
  25. # define LDBL_MANT_DIG 64
  26. /* Number of decimal digits that is sufficient for representing a number. */
  27. # undef LDBL_DIG
  28. # define LDBL_DIG 18
  29. /* x-1 where x is the smallest representable number > 1. */
  30. # undef LDBL_EPSILON
  31. # define LDBL_EPSILON 1.0842021724855044340E-19L
  32. /* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */
  33. # undef LDBL_MIN_EXP
  34. # define LDBL_MIN_EXP (-16381)
  35. /* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */
  36. # undef LDBL_MAX_EXP
  37. # define LDBL_MAX_EXP 16384
  38. /* Minimum positive normalized number. */
  39. # undef LDBL_MIN
  40. # define LDBL_MIN 3.3621031431120935063E-4932L
  41. /* Maximum representable finite number. */
  42. # undef LDBL_MAX
  43. # define LDBL_MAX 1.1897314953572317650E+4932L
  44. /* Minimum e such that 10^e is in the range of normalized numbers. */
  45. # undef LDBL_MIN_10_EXP
  46. # define LDBL_MIN_10_EXP (-4931)
  47. /* Maximum e such that 10^e is in the range of representable finite numbers. */
  48. # undef LDBL_MAX_10_EXP
  49. # define LDBL_MAX_10_EXP 4932
  50. #endif
  51. #endif /* _GL_FLOAT_H */
  52. #endif /* _GL_FLOAT_H */