Skip to content

Commit c5bc298

Browse files
committed
Unconditionally load fastabs
1 parent c9f8817 commit c5bc298

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/SpecialFunctions.jl

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import LogExpFunctions
1818
using OpenLibm_jll
1919
using OpenSpecFun_jll
2020

21+
using Base.Math: fastabs
22+
2123
export
2224
airyai,
2325
airyaiprime,
@@ -116,13 +118,4 @@ for f in (:beta, :lbeta)
116118
end
117119
polygamma(m::Integer, x::Missing) = missing
118120

119-
# In future just use `fastabs` from Base.Math
120-
# https://github.com/JuliaLang/julia/blob/93fb785831dcfcc442f82fab8746f0244c5274ae/base/special/trig.jl#L1057
121-
if isdefined(Base.Math, :fastabs)
122-
import Base.Math: fastabs
123-
else
124-
fastabs(x::Number) = abs(x)
125-
fastabs(x::Complex) = abs(real(x)) + abs(imag(x))
126-
end
127-
128121
end # module

0 commit comments

Comments
 (0)