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.

30 lines
1.1 KiB

  1. // Copyright (c) 1996-1999 Microsoft Corporation
  2. // float.h
  3. //
  4. // Defines fp_ floating point functions which don't rely on the C runtime.
  5. //
  6. // If you don't want to pull in C runtime floating point support, you
  7. // need to include the following in a .cpp file:
  8. //
  9. // extern "C" int _fltused = 1;
  10. //
  11. // floating point operations
  12. STDAPI_(long) fp_ftol (float flX);
  13. STDAPI_(float) fp_ltof (long lX);
  14. STDAPI_(float) fp_fadd (float fA, float fB);
  15. STDAPI_(float) fp_fsub (float fA, float fB);
  16. STDAPI_(float) fp_fmul (float fA, float fB);
  17. STDAPI_(float) fp_fdiv (float fNum, float fDenom);
  18. STDAPI_(float) fp_fabs (float flX);
  19. STDAPI_(float) fp_fsin (float flX);
  20. STDAPI_(float) fp_fcos (float flX);
  21. STDAPI_(float) fp_fpow (float flX, float flY);
  22. STDAPI_(float) fp_flog2 (float flX);
  23. STDAPI_(float) fp_flog10 (float flX);
  24. STDAPI_(float) fp_fchs (float flX);
  25. STDAPI_(int) fp_fcmp (float flA, float flB);
  26. STDAPI_(float) fp_fmin (float flA, float flB);
  27. STDAPI_(float) fp_fmax (float flA, float flB);