4
0

float.in.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* A correct <float.h>.
  2. Copyright (C) 2007 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 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 General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. #ifndef _GL_FLOAT_H
  14. /* The include_next requires a split double-inclusion guard. */
  15. #@INCLUDE_NEXT@ @NEXT_FLOAT_H@
  16. #ifndef _GL_FLOAT_H
  17. #define _GL_FLOAT_H
  18. /* 'long double' properties. */
  19. #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
  20. /* Number of mantissa units, in base FLT_RADIX. */
  21. # undef LDBL_MANT_DIG
  22. # define LDBL_MANT_DIG 64
  23. /* Number of decimal digits that is sufficient for representing a number. */
  24. # undef LDBL_DIG
  25. # define LDBL_DIG 18
  26. /* x-1 where x is the smallest representable number > 1. */
  27. # undef LDBL_EPSILON
  28. # define LDBL_EPSILON 1.0842021724855044340E-19L
  29. /* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */
  30. # undef LDBL_MIN_EXP
  31. # define LDBL_MIN_EXP (-16381)
  32. /* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */
  33. # undef LDBL_MAX_EXP
  34. # define LDBL_MAX_EXP 16384
  35. /* Minimum positive normalized number. */
  36. # undef LDBL_MIN
  37. # define LDBL_MIN 3.3621031431120935063E-4932L
  38. /* Maximum representable finite number. */
  39. # undef LDBL_MAX
  40. # define LDBL_MAX 1.1897314953572317650E+4932L
  41. /* Minimum e such that 10^e is in the range of normalized numbers. */
  42. # undef LDBL_MIN_10_EXP
  43. # define LDBL_MIN_10_EXP (-4931)
  44. /* Maximum e such that 10^e is in the range of representable finite numbers. */
  45. # undef LDBL_MAX_10_EXP
  46. # define LDBL_MAX_10_EXP 4932
  47. #endif
  48. #endif /* _GL_FLOAT_H */
  49. #endif /* _GL_FLOAT_H */