diff options
author | Szabolcs Nagy <nsz@port70.net> | 2019-10-13 14:54:31 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-10-13 17:46:58 -0400 |
commit | e858063070eedb7fe78c37eba5177d8c5cfccfa6 (patch) | |
tree | 096107b70bf29ed69cdb761894a91c230b885fa7 /include/complex.h | |
parent | 716745e00e304a650a8eef57c15fbd326168096e (diff) | |
download | musl-e858063070eedb7fe78c37eba5177d8c5cfccfa6.tar.gz musl-e858063070eedb7fe78c37eba5177d8c5cfccfa6.tar.bz2 musl-e858063070eedb7fe78c37eba5177d8c5cfccfa6.tar.xz musl-e858063070eedb7fe78c37eba5177d8c5cfccfa6.zip |
math: fix signed int left shift ub in sqrt
Both sqrt and sqrtf shifted the signed exponent as signed int to adjust
the bit representation of the result. There are signed right shifts too
in the code but those are implementation defined and are expected to
compile to arithmetic shift on supported compilers and targets.
Diffstat (limited to 'include/complex.h')
0 files changed, 0 insertions, 0 deletions