summaryrefslogtreecommitdiff
path: root/src/complex
diff options
context:
space:
mode:
authorSzabolcs Nagy <[email protected]>2019-10-13 14:54:31 +0000
committerRich Felker <[email protected]>2019-10-13 17:46:58 -0400
commite858063070eedb7fe78c37eba5177d8c5cfccfa6 (patch)
tree096107b70bf29ed69cdb761894a91c230b885fa7 /src/complex
parent716745e00e304a650a8eef57c15fbd326168096e (diff)
downloadmusl-e858063070eedb7fe78c37eba5177d8c5cfccfa6.tar.gz
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 'src/complex')
0 files changed, 0 insertions, 0 deletions