Skip to content

Commit

Permalink
muladd fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Jan 22, 2015
1 parent 74e28e6 commit 45a27da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/promotion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ no_op_err(name, T) = error(name," not defined for ",T)

fma{T<:Number}(x::T, y::T, z::T) = no_op_err("fma", T)
fma(x::Integer, y::Integer, z::Integer) = x*y+z
muladd{T<:Number}(x::T, y::T, z::T) = no_op_err("muladd", T)
muladd{T<:Number}(x::T, y::T, z::T) = x*y+z

(&){T<:Integer}(x::T, y::T) = no_op_err("&", T)
(|){T<:Integer}(x::T, y::T) = no_op_err("|", T)
Expand Down

0 comments on commit 45a27da

Please sign in to comment.