/src/core/stdc/float_.d

http://github.com/AlexeyProkhin/druntime · D · 60 lines · 35 code · 12 blank · 13 comment · 0 complexity · 17c740e880bf979c178ecc04b953a4e4 MD5 · raw file

  1. /**
  2. * D header file for C99.
  3. *
  4. * Copyright: Copyright Sean Kelly 2005 - 2009.
  5. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
  6. * Authors: Sean Kelly
  7. * Standards: ISO/IEC 9899:1999 (E)
  8. */
  9. /* Copyright Sean Kelly 2005 - 2009.
  10. * Distributed under the Boost Software License, Version 1.0.
  11. * (See accompanying file LICENSE or copy at
  12. * http://www.boost.org/LICENSE_1_0.txt)
  13. */
  14. module core.stdc.float_;
  15. extern (C):
  16. @trusted: // Constants only.
  17. nothrow:
  18. enum FLT_ROUNDS = 1;
  19. enum FLT_EVAL_METHOD = 2;
  20. enum FLT_RADIX = 2;
  21. enum DECIMAL_DIG = real.dig;
  22. enum FLT_DIG = float.dig;
  23. enum DBL_DIG = double.dig;
  24. enum LDBL_DIG = real.dig;
  25. enum FLT_MANT_DIG = float.mant_dig;
  26. enum DBL_MANT_DIG = double.mant_dig;
  27. enum LDBL_MANT_DIG = real.mant_dig;
  28. enum FLT_MIN = float.min_normal;
  29. enum DBL_MIN = double.min_normal;
  30. enum LDBL_MIN = real.min_normal;
  31. enum FLT_MAX = float.max;
  32. enum DBL_MAX = double.max;
  33. enum LDBL_MAX = real.max;
  34. enum FLT_EPSILON = float.epsilon;
  35. enum DBL_EPSILON = double.epsilon;
  36. enum LDBL_EPSILON = real.epsilon;
  37. enum FLT_MIN_EXP = float.min_exp;
  38. enum DBL_MIN_EXP = double.min_exp;
  39. enum LDBL_MIN_EXP = real.min_exp;
  40. enum FLT_MAX_EXP = float.max_exp;
  41. enum DBL_MAX_EXP = double.max_exp;
  42. enum LDBL_MAX_EXP = real.max_exp;
  43. enum FLT_MIN_10_EXP = float.min_10_exp;
  44. enum DBL_MIN_10_EXP = double.min_10_exp;
  45. enum LDBL_MIN_10_EXP = real.min_10_exp;
  46. enum FLT_MAX_10_EXP = float.max_10_exp;
  47. enum DBL_MAX_10_EXP = double.max_10_exp;
  48. enum LDBL_MAX_10_EXP = real.max_10_exp;