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.

48 lines
1.5 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: flhack.hxx
  3. *
  4. * Floating point externants definitions
  5. *
  6. * Created: 01-May-1991 20:13:38
  7. * Author: Kent Diammond [kentd]
  8. *
  9. * Copyright (c) 1991-1999 Microsoft Corporation
  10. \**************************************************************************/
  11. #define SINE_TABLE_POWER 5
  12. #define SINE_TABLE_SIZE (1 << SINE_TABLE_POWER)
  13. #define SINE_TABLE_MASK ((1 << SINE_TABLE_POWER) - 1)
  14. #define ARCTAN_TABLE_SIZE 32
  15. extern "C" EFLOAT gaefArctan[];
  16. extern "C" EFLOAT gaefSin[];
  17. extern "C" EFLOAT gaefAxisCoord[];
  18. extern "C" EFLOAT gaefAxisAngle[];
  19. extern "C" EFLOAT FP_0_0;
  20. extern "C" EFLOAT FP_0_005;
  21. extern "C" EFLOAT FP_0_552285;
  22. extern "C" EFLOAT FP_0_5;
  23. extern "C" EFLOAT FP_1_0;
  24. extern "C" EFLOAT FP_2_0;
  25. extern "C" EFLOAT FP_3_0;
  26. extern "C" EFLOAT FP_4_0;
  27. extern "C" EFLOAT FP_90_0;
  28. extern "C" EFLOAT FP_180_0;
  29. extern "C" EFLOAT FP_270_0;
  30. extern "C" EFLOAT FP_360_0;
  31. extern "C" EFLOAT FP_1000_0;
  32. extern "C" EFLOAT FP_3600_0;
  33. extern "C" EFLOAT FP_M3600_0;
  34. extern "C" EFLOAT FP_QUADRANT_TAU;
  35. extern "C" EFLOAT FP_ORIGIN_TAU;
  36. extern "C" EFLOAT FP_SINE_FACTOR;
  37. extern "C" EFLOAT FP_4DIV3;
  38. extern "C" EFLOAT FP_1DIV90;
  39. extern "C" EFLOAT FP_EPSILON;
  40. extern "C" EFLOAT FP_ARCTAN_TABLE_SIZE;
  41. extern "C" EFLOAT FP_PI;
  42. #define NEGATE_IEEE_FLOAT(x) if (*(LONG *)&(x)) *(LONG *)&(x) ^= 0x80000000
  43. #define SET_FLOAT_WITH_LONG(f,l) *((LONG*)(&(f))) = (l)