float.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _FLOAT_H
  2. #define _FLOAT_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. int __flt_rounds(void);
  7. #define FLT_ROUNDS (__flt_rounds())
  8. #define FLT_RADIX 2
  9. #define FLT_TRUE_MIN 1.40129846432481707092e-45F
  10. #define FLT_MIN 1.17549435082228750797e-38F
  11. #define FLT_MAX 3.40282346638528859812e+38F
  12. #define FLT_EPSILON 1.1920928955078125e-07F
  13. #define FLT_MANT_DIG 24
  14. #define FLT_MIN_EXP (-125)
  15. #define FLT_MAX_EXP 128
  16. #define FLT_HAS_SUBNORM 1
  17. #define FLT_DIG 6
  18. #define FLT_DECIMAL_DIG 9
  19. #define FLT_MIN_10_EXP (-37)
  20. #define FLT_MAX_10_EXP 38
  21. #define DBL_TRUE_MIN 4.94065645841246544177e-324
  22. #define DBL_MIN 2.22507385850720138309e-308
  23. #define DBL_MAX 1.79769313486231570815e+308
  24. #define DBL_EPSILON 2.22044604925031308085e-16
  25. #define DBL_MANT_DIG 53
  26. #define DBL_MIN_EXP (-1021)
  27. #define DBL_MAX_EXP 1024
  28. #define DBL_HAS_SUBNORM 1
  29. #define DBL_DIG 15
  30. #define DBL_DECIMAL_DIG 17
  31. #define DBL_MIN_10_EXP (-307)
  32. #define DBL_MAX_10_EXP 308
  33. #define LDBL_HAS_SUBNORM 1
  34. #define LDBL_DECIMAL_DIG DECIMAL_DIG
  35. #include <bits/float.h>
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif