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.

38 lines
844 B

  1. /***
  2. *merr.c - floating point exception handling
  3. *
  4. * Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *
  8. *Revision History:
  9. * 08-03-94 GJF Created. Basically, this is a modified copy of the
  10. * old fpw32\tran\matherr.c.
  11. *
  12. *******************************************************************************/
  13. #include <math.h>
  14. /*
  15. * Define flag signifying the default _matherr routine is being used.
  16. */
  17. int __defaultmatherr = 1;
  18. /***
  19. *int _matherr(struct _exception *pexcept) - handle math errors
  20. *
  21. *Purpose:
  22. * Permits the user customize fp error handling by redefining this function.
  23. *
  24. * The default matherr does nothing and returns 0
  25. *
  26. *Entry:
  27. *
  28. *Exit:
  29. *
  30. *Exceptions:
  31. *******************************************************************************/
  32. int _matherr(struct _exception *pexcept)
  33. {
  34. return 0;
  35. }