Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. /* values used by math functions -- IEEE 754 version */
  2. #include "xmath.h"
  3. _STD_BEGIN
  4. /* macros */
  5. #define NBITS (48 + _DOFF)
  6. #if _D0 == 0
  7. #define INIT(w0) {w0, 0, 0, 0}
  8. #define INIT2(w0, w1) {w0, 0, 0, w1}
  9. #else
  10. #define INIT(w0) {0, 0, 0, w0}
  11. #define INIT2(w0, w1) {w1, 0, 0, w0}
  12. #endif
  13. /* static data */
  14. _CRTIMP2 const _Dconst _Denorm = {INIT2(0, 1)};
  15. _CRTIMP2 const _Dconst _Eps = {INIT((_DBIAS - NBITS - 1) << _DOFF)};
  16. _CRTIMP2 const _Dconst _Hugeval = {INIT(_DMAX << _DOFF)};
  17. _CRTIMP2 const _Dconst _Inf = {INIT(_DMAX << _DOFF)};
  18. _CRTIMP2 const _Dconst _Nan = {INIT(_DSIGN | (_DMAX << _DOFF)
  19. | (1 << (_DOFF - 1)))};
  20. _CRTIMP2 const _Dconst _Rteps = {INIT((_DBIAS - NBITS / 2) << _DOFF)};
  21. _CRTIMP2 const _Dconst _Snan = {INIT(_DSIGN | (_DMAX << _DOFF)
  22. | (1 << (_DOFF - 1)))};
  23. _CRTIMP2 const double _Xbig = (NBITS + 1) * 347L / 1000;
  24. _CRTIMP2 const double _Zero = 0.0;
  25. _STD_END
  26. /*
  27. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  28. * Consult your license regarding permissions and restrictions.
  29. V3.10:0009 */