Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly round double precision sqrt (#256)
As discussed in JuliaLang/julia#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).
- Loading branch information