Skip to content

Commit d8e9bd4

Browse files
Merge pull request #257 from araujoms/muladd
redirect muladd to fma
2 parents cad4634 + ac0dd13 commit d8e9bd4

3 files changed

Lines changed: 6 additions & 93 deletions

File tree

src/DoubleFloats.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ include("math/elementary/archyptrig.jl")
120120
include("math/elementary/templated.jl")
121121
include("math/elementary/complex.jl")
122122

123-
include("math/linearalgebra/matmul.jl")
124123
include("math/linearalgebra/support.jl")
125124
include("math/linearalgebra/matrixfunction.jl")
126125

src/math/arithmetic/fma.jl

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,12 @@ end
5151
return fma(x.hi, x.lo, y.hi, y.lo, z)
5252
end
5353

54-
@inline function fma(x::DoubleFloat{T}, y::DoubleFloat{T}, z::Tuple{T,T}) where {T<:IEEEFloat}
55-
return fma(x.hi, x.lo, y.hi, y.lo, z[1], z[2])
54+
@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::DoubleFloat{T}) where {T<:IEEEFloat}
55+
return fma(x, y, z)
5656
end
57-
@inline function fma(x::DoubleFloat{T}, y::Tuple{T,T}, z::DoubleFloat{T}) where {T<:IEEEFloat}
58-
return fma(x.hi, x.lo, y[1], y[2], z.hi, z.lo)
57+
@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::T) where {T<:IEEEFloat}
58+
return fma(x, y, z)
5959
end
60-
@inline function fma(x::Tuple{T,T}, y::DoubleFloat{T}, z::DoubleFloat{T}) where {T<:IEEEFloat}
61-
return fma(x[1], x[2], y.hi, y.lo, z.hi, z.lo)
62-
end
63-
@inline function fma(x::DoubleFloat{T}, y::Tuple{T,T}, z::Tuple{T,T}) where {T<:IEEEFloat}
64-
return fma(x.hi, x.lo, y[1], y[2], z[1], z[2])
65-
end
66-
@inline function fma(x::Tuple{T,T}, y::Tuple{T,T}, z::DoubleFloat{T}) where {T<:IEEEFloat}
67-
return fma(x[1], x[2], y[1], y[2], z.hi, z.lo)
68-
end
69-
@inline function fma(x::Tuple{T,T}, y::DoubleFloat{T}, z::Tuple{T,T}) where {T<:IEEEFloat}
70-
return fma(x[1], x[2], y.hi, y.lo, z[1], z[2])
71-
end
72-
@inline function fma(x::Tuple{T,T}, y::Tuple{T,T}, z::Tuple{T,T}) where {T<:IEEEFloat}
73-
return fma(x[1], x[2], y[1], y[2], z[1], z[2])
60+
@inline function muladd(x::T, y::T, z::DoubleFloat{T}) where {T<:IEEEFloat}
61+
return fma(x, y, z)
7462
end

src/math/linearalgebra/matmul.jl

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)