Skip to content

Commit dd763db

Browse files
Update tripleword.jl
1 parent 1ea2d9d commit dd763db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/doubletriple/tripleword.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Nicolas Fabiano, Jean-Michel Muller, Joris Picot
55
=#
66

7+
function vecsum3(x0::T, x1::T, x2::T) where {T}
8+
s1, e2 = two_sum(x1, x2)
9+
s0, e1 = two_sum(x0, s1)
10+
return s0,e1,e2
11+
end
12+
13+
714
function vecsum(x0::T,x1::T,x2::T) where {T}
815
x0 === 0.0 && return (two_sum(x1, x2)..., 0.0)
916
s1, e2 = two_sum(x1, x2)

0 commit comments

Comments
 (0)