Skip to content

v0.8.1: Correctly round double precision sqrt (#256)

Compare
Choose a tag to compare
@ViralBShah ViralBShah released this 19 Jan 23:45
· 37 commits to master since this release
ae2d916
As discussed in https://github.com/JuliaLang/julia/pull/43786, openlibm's sqrt function is incorrectly rounded for i387. IEEE requires correct rounding for these functions and LLVM relies on it. Fix that by setting the precision in the FPU control word (see e.g. e_ceil.S for similar FPU modifications).