summaryrefslogtreecommitdiff
path: root/src/complex/catan.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2022-02-04 21:04:45 +0100
committerRich Felker <dalias@aerifal.cx>2022-03-08 16:27:15 -0500
commit7c0c7a75ec8ecf3eedefc40bb4dae5aaa76d7108 (patch)
treec787eb03223648195b3b96174cdadc1e0556f382 /src/complex/catan.c
parentf8bdc3048216f41eaaf655524fa286cfb1184a70 (diff)
downloadmusl-7c0c7a75ec8ecf3eedefc40bb4dae5aaa76d7108.tar.gz
math: avoid runtime conversions of floating-point constants
gcc-12 with -frounding-mode will do inexact constant conversions at runtime according to the runtime rounding mode. in the math library we want constants to be rounding mode independent so this patch fixes cases where new runtime conversions happen with gcc-12. fortunately this only affects two minor cases, the fix uses global initializers where rounding mode does not apply. after the patch the same amount of conversions happen with gcc-12 as with gcc-11.
Diffstat (limited to 'src/complex/catan.c')
0 files changed, 0 insertions, 0 deletions