Skip to content

Commit

Permalink
Update errorfree.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored Apr 27, 2018
1 parent 1cdf4df commit f6c0ecf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/errorfree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,11 @@ function sub_3(a::T, b::T, c::T) where {T<:AbstractFloat}
x, y = add_(x, y)
return x, y, z
end

# a - b - c
function sub_2(a::T, b::T, c::T) where {T<:AbstractFloat}
s, t = sub_(-b, c)
x, u = add_(a, s)
y = u + t
y = u + t
x, y = add_(x, y)
return x, y
end
Expand Down

0 comments on commit f6c0ecf

Please sign in to comment.