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.

32 lines
1013 B

  1. /* values used by math functions -- IEEE 754 float version */
  2. #include "xmath.h"
  3. _STD_BEGIN
  4. /* macros */
  5. #define NBITS (16 + _FOFF)
  6. #if _D0 == 0
  7. #define INIT(w0) {w0, 0}
  8. #define INIT2(w0, w1) {w0, w1}
  9. #else
  10. #define INIT(w0) {0, w0}
  11. #define INIT2(w0, w1) {w1, w0}
  12. #endif
  13. /* static data */
  14. _CRTIMP2 const _Dconst _FDenorm = {INIT2(0, 1)};
  15. _CRTIMP2 const _Dconst _FEps = {INIT((_FBIAS - NBITS - 1) << _FOFF)};
  16. _CRTIMP2 const _Dconst _FInf = {INIT(_FMAX << _FOFF)};
  17. _CRTIMP2 const _Dconst _FNan = {INIT(_FSIGN | (_FMAX << _FOFF)
  18. | (1 << (_FOFF - 1)))};
  19. _CRTIMP2 const _Dconst _FSnan = {INIT(_FSIGN | (_FMAX << _FOFF)
  20. | (1 << (_FOFF - 1)))};
  21. _CRTIMP2 const _Dconst _FRteps = {INIT((_FBIAS - NBITS / 2) << _FOFF)};
  22. _CRTIMP2 const float _FXbig = (NBITS + 1) * 347L / 1000;
  23. _CRTIMP2 const float _FZero = 0.0F;
  24. _STD_END
  25. /*
  26. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  27. * Consult your license regarding permissions and restrictions.
  28. V3.10:0009 */