| * This file has no copyright assigned and is placed in the Public Domain. |
| * This file is part of the mingw-w64 runtime package. |
| * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| typedef int (__cdecl *fUserMathErr)(struct _exception *); |
| static fUserMathErr stUserMathErr; |
| void __mingw_raise_matherr (int typ, const char *name, double a1, double a2, |
| void __mingw_setusermatherr (int (__cdecl *f)(struct _exception *)) |
| _matherr (struct _exception *pexcept) |
| type = "Argument domain error (DOMAIN)"; |
| type = "Argument singularity (SIGN)"; |
| type = "Overflow range error (OVERFLOW)"; |
| type = "Partial loss of significance (PLOSS)"; |
| type = "Total loss of significance (TLOSS)"; |
| type = "The result is too small to be represented (UNDERFLOW)"; |
| fprintf (stderr, "_matherr(): %s in %s(%g, %g) (retval=%g)\n", |
| type, pexcept->name, pexcept->arg1, pexcept->arg2, pexcept->retval); |