Skip to content

Commit c6c232b

Browse files
committed
fully working?
1 parent 25a91e4 commit c6c232b

File tree

3 files changed

+168
-315
lines changed

3 files changed

+168
-315
lines changed

base/math.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,9 @@ asinh(x::Number)
362362
Accurately compute ``e^x-1``.
363363
"""
364364
expm1(x)
365-
for f in (:exp2, :expm1)
366-
@eval begin
367-
($f)(x::Float64) = ccall(($(string(f)),libm), Float64, (Float64,), x)
368-
($f)(x::Float32) = ccall(($(string(f,"f")),libm), Float32, (Float32,), x)
369-
($f)(x::Real) = ($f)(float(x))
370-
end
371-
end
365+
expm1(x::Float64) = ccall((:expm1,libm), Float64, (Float64,), x)
366+
expm1(x::Float32) = ccall((:expm1,libm), Float32, (Float32,), x)
367+
expm1(x::Real) = expm1(float(x))
372368

373369
"""
374370
exp2(x)
@@ -1184,7 +1180,6 @@ Return positive part of the high word of `x` as a `UInt32`.
11841180
# More special functions
11851181
include("special/cbrt.jl")
11861182
include("special/exp.jl")
1187-
include("special/exp10.jl")
11881183
include("special/ldexp_exp.jl")
11891184
include("special/hyperbolic.jl")
11901185
include("special/trig.jl")

0 commit comments

Comments
 (0)