Skip to content

Commit b29d239

Browse files
committed
redirect muladd to fma
1 parent cad4634 commit b29d239

3 files changed

Lines changed: 13 additions & 75 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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,16 @@ end
7272
@inline function fma(x::Tuple{T,T}, y::Tuple{T,T}, z::Tuple{T,T}) where {T<:IEEEFloat}
7373
return fma(x[1], x[2], y[1], y[2], z[1], z[2])
7474
end
75+
76+
@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::DoubleFloat{T}) where {T<:IEEEFloat}
77+
return fma(x, y, z)
78+
end
79+
@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::T) where {T<:IEEEFloat}
80+
return fma(x, y, z)
81+
end
82+
@inline function muladd(x::DoubleFloat{T}, y::T, z::DoubleFloat{T}) where {T<:IEEEFloat}
83+
return fma(x, y, z)
84+
end
85+
@inline function muladd(x::T, y::DoubleFloat{T}, z::DoubleFloat{T}) where {T<:IEEEFloat}
86+
return fma(x, y, z)
87+
end

src/math/linearalgebra/matmul.jl

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

0 commit comments

Comments
 (0)