|
72 | 72 | @inline function fma(x::Tuple{T,T}, y::Tuple{T,T}, z::Tuple{T,T}) where {T<:IEEEFloat} |
73 | 73 | return fma(x[1], x[2], y[1], y[2], z[1], z[2]) |
74 | 74 | end |
75 | | - |
76 | | -#@inline muladd(xhi::T, xlo::T, yhi::T, ylo::T, zhi::T, zlo::T) where {T<:IEEEFloat} = fma(xhi, xlo, yhi, ylo, zhi, zlo) |
77 | | - |
78 | | -@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::DoubleFloat{T}) where {T<:IEEEFloat} |
79 | | - return x*y + z |
80 | | -end |
81 | | - |
82 | | -@inline function muladd(x::T, y::T, z::DoubleFloat{T}) where {T<:IEEEFloat} |
83 | | - return DoubleFloat{T}(x)*y + z |
84 | | -end |
85 | | - |
86 | | -@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::T) where {T<:IEEEFloat} |
87 | | - return x*y + z |
88 | | -end |
89 | | -#= |
90 | | -@inline function muladd(x::DoubleFloat{T}, y::DoubleFloat{T}, z::Tuple{T,T}) where {T<:IEEEFloat} |
91 | | - return muladd(x.hi, x.lo, y.hi, y.lo, z[1], z[2]) |
92 | | -end |
93 | | -@inline function muladd(x::DoubleFloat{T}, y::Tuple{T,T}, z::DoubleFloat{T}) where {T<:IEEEFloat} |
94 | | - return muladd(x.hi, x.lo, y[1], y[2], z.hi, z.lo) |
95 | | -end |
96 | | -@inline function muladd(x::Tuple{T,T}, y::DoubleFloat{T}, z::DoubleFloat{T}) where {T<:IEEEFloat} |
97 | | - return muladd(x[1], x[2], y.hi, y.lo, z.hi, z.lo) |
98 | | -end |
99 | | -@inline function muladd(x::DoubleFloat{T}, y::Tuple{T,T}, z::Tuple{T,T}) where {T<:IEEEFloat} |
100 | | - return muladd(x.hi, x.lo, y[1], y[2], z[1], z[2]) |
101 | | -end |
102 | | -@inline function muladd(x::Tuple{T,T}, y::Tuple{T,T}, z::DoubleFloat{T}) where {T<:IEEEFloat} |
103 | | - return muladd(x[1], x[2], y[1], y[2], z.hi, z.lo) |
104 | | -end |
105 | | -@inline function muladd(x::Tuple{T,T}, y::DoubleFloat{T}, z::Tuple{T,T}) where {T<:IEEEFloat} |
106 | | - return muladd(x[1], x[2], y.hi, y.lo, z[1], z[2]) |
107 | | -end |
108 | | -@inline function muladd(x::Tuple{T,T}, y::Tuple{T,T}, z::Tuple{T,T}) where {T<:IEEEFloat} |
109 | | - return muladd(x[1], x[2], y[1], y[2], z[1], z[2]) |
110 | | -end |
111 | | -=# |
0 commit comments