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.

53 lines
1.2 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: service.h
  3. *
  4. * routines in service.c
  5. *
  6. * Created: 15-Nov-1990 13:00:56
  7. * Author: Bodin Dresevic [BodinD]
  8. *
  9. * Copyright (c) 1990 Microsoft Corporation
  10. \**************************************************************************/
  11. #if defined(_AMD64_) || defined(_IA64_)
  12. typedef FLOAT EFLOAT;
  13. #else // i386
  14. typedef struct _FLOATINTERN
  15. {
  16. LONG lMant;
  17. LONG lExp;
  18. } FLOATINTERN;
  19. typedef FLOATINTERN EFLOAT;
  20. #endif
  21. typedef EFLOAT *PEFLOAT;
  22. typedef struct _VECTORFL
  23. {
  24. EFLOAT x;
  25. EFLOAT y;
  26. } VECTORFL, *PVECTORFL;
  27. VOID vLTimesVtfl(LONG l, VECTORFL *pvtfl, POINTQF *pptq);
  28. #if defined(_AMD64_) || defined(_IA64_)
  29. #define vEToEF(e, pef) ( *pef = e)
  30. #define bIsZero(ef) ( ef == 0 )
  31. #define bPositive(ef) ( ef >= 0 )
  32. #define fxLTimesEf(pef, l) ( (FIX)(*pef * l) )
  33. #else
  34. VOID ftoef_c(FLOATL, PEFLOAT);
  35. #define vEToEF(e, pef) ftoef_c(e, pef)
  36. #define bIsZero(ef) ((ef.lMant == 0) && (ef.lExp == 0))
  37. #define bPositive(ef) (ef.lMant >= 0)
  38. FIX fxLTimesEf(EFLOAT *pef, LONG l);
  39. #endif // _AMD64_ || _IA64_