Skip to content

Commit

Permalink
fix inv
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored Oct 17, 2018
1 parent 89d0918 commit 6f766e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/faithful.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end

function inv_2(b::T) where {T<:AbstractFloat}
hi = inv(b)
lo = fma(hi, b, -1.0)
lo = fma(hi, b, -one(T))
lo = -lo / b
return hi, lo
end
Expand Down

0 comments on commit 6f766e6

Please sign in to comment.