Skip to content

Commit 92c841f

Browse files
committed
fix
1 parent 3cea757 commit 92c841f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/NaNMath.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ for f in (:sin, :cos, :tan, :asin, :acos, :acosh, :atanh,
1414
end
1515
end
1616

17-
for f in (:lgamma)
18-
@eval begin
19-
Base.@assume_effects :total ($f)(x::Float64) = ccall(($(string(f)),libm), Float64, (Float64,), x)
20-
Base.@assume_effects :total ($f)(x::Float32) = ccall(($(string(f,"f")),libm), Float32, (Float32,), x)
21-
end
17+
@eval begin
18+
Base.@assume_effects :total lgamma(x::Float64) = ccall(("lgamma",libm), Float64, (Float64,), x)
19+
Base.@assume_effects :total lgamma(x::Float32) = ccall(("lgammaf",libm), Float32, (Float32,), x)
2220
end
2321

2422
for f in (:sin, :cos, :tan)

0 commit comments

Comments
 (0)