File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1212#include <stdint.h>
1313
1414#ifndef WANT_ROUNDING
15- /* Correct special case results in non-nearest rounding modes. */
15+ /* If defined to 1, return correct results for special cases in non-nearest
16+ rounding modes (logf (1.0f) returns 0.0f with FE_DOWNWARD rather than -0.0f).
17+ This may be set to 0 if there is no fenv support or if math functions only
18+ get called in round to nearest mode. */
1619# define WANT_ROUNDING 1
1720#endif
1821#ifndef WANT_ERRNO
19- /* Set errno according to ISO C with (math_errhandling & MATH_ERRNO) != 0. */
20- # define WANT_ERRNO 1
22+ /* If defined to 1, set errno in math functions according to ISO C. Many math
23+ libraries do not set errno, so this is 0 by default. It may need to be
24+ set to 1 if math.h has (math_errhandling & MATH_ERRNO) != 0. */
25+ # define WANT_ERRNO 0
2126#endif
2227#ifndef WANT_ERRNO_UFLOW
2328/* Set errno to ERANGE if result underflows to 0 (in all rounding modes). */
You can’t perform that action at this time.
0 commit comments