Source code of Windows XP (NT5)
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.

39 lines
1.2 KiB

  1. This library implement some function to support some floating
  2. point operation wow64cpu might call. Codes has been cloned from
  3. \NT\private\sdktools\vctools\crt\fpw32\tran and modified some stuff
  4. to remove some dependency on other RTL functions.
  5. Implemented functions are:
  6. 1. double modf( double x, double *intptr )
  7. 2. double _logb( double x )
  8. 3. double _scalb( double x, long exp )
  9. 4. double ldexp( double x, int exp )
  10. 5. double Proxylog10( double x )
  11. 6. double Proxyatan2( double y, double x )
  12. and some other helpful miscellaneous ieee floating point functions
  13. like _frnd(double x), _logb(double x) etc.
  14. This library is almost self consistent set of functions anybody can use. They just
  15. need to implement following two functions.
  16. 1. VOID SetMathError ( int Code ) - math library will call this function
  17. with math error code caller light be interested if math operation failed.
  18. 2. VOID ProxyRaiseException(
  19. IN DWORD dwExceptionCode,
  20. IN DWORD dwExceptionFlags,
  21. IN DWORD nNumberOfArguments,
  22. IN CONST ULONG_PTR *lpArguments
  23. )
  24. Math function call this function if some exception happen during floating
  25. point operation like ieee floating point exception.