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.

24 lines
611 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // rampmisc.h
  4. //
  5. // Miscellaneous stuff needed to compile imported ramp code.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1997.
  8. //
  9. //----------------------------------------------------------------------------
  10. #ifndef _RAMPMISC_H_
  11. #define _RAMPMISC_H_
  12. #define VALPTOD(f,prec) ((double) (f))
  13. #define NORMAL_PREC 16
  14. #define VALTOD(f) VALPTOD(f,NORMAL_PREC)
  15. // Macro to retrieve SPANTEX pointer
  16. #define HANDLE_TO_SPANTEX(hTex) \
  17. (*(PD3DI_SPANTEX *)ULongToPtr(hTex))
  18. #endif // _RAMPMISC_H_