2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
11 int __defaultmatherr
= 0;
14 _matherr (struct _exception
*pexcept
)
21 type
= "Argument domain error (DOMAIN)";
25 type
= "Argument singularity (SIGN)";
29 type
= "Overflow range error (OVERFLOW)";
33 type
= "Partial loss of significance (PLOSS)";
37 type
= "Total loss of significance (TLOSS)";
41 type
= "The result is too small to be represented (UNDERFLOW)";
45 type
= "Unknown error";
49 fprintf(stderr
, "_matherr(): %s in %s(%g, %g) (retval=%g)\n",
50 type
, pexcept
->name
, pexcept
->arg1
, pexcept
->arg2
, pexcept
->retval
);