diff options
author | Szabolcs Nagy <nsz@port70.net> | 2022-02-04 21:04:45 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-03-08 16:27:15 -0500 |
commit | 7c0c7a75ec8ecf3eedefc40bb4dae5aaa76d7108 (patch) | |
tree | c787eb03223648195b3b96174cdadc1e0556f382 /src/stdio/putwchar.c | |
parent | f8bdc3048216f41eaaf655524fa286cfb1184a70 (diff) | |
download | musl-7c0c7a75ec8ecf3eedefc40bb4dae5aaa76d7108.tar.gz musl-7c0c7a75ec8ecf3eedefc40bb4dae5aaa76d7108.tar.xz musl-7c0c7a75ec8ecf3eedefc40bb4dae5aaa76d7108.zip |
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/stdio/putwchar.c')
0 files changed, 0 insertions, 0 deletions