Skip to content

Commit 20a3933

Browse files
committed
force inline pow_fast (#59824)
(cherry picked from commit 354c575)
1 parent f3f6e44 commit 20a3933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/fastmath.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ exp10_fast(x::Union{Float32,Float64}) = Base.Math.exp10_fast(x)
297297

298298
# builtins
299299

300-
function pow_fast(x::Float64, y::Integer)
300+
@inline function pow_fast(x::Float64, y::Integer)
301301
z = y % Int32
302302
z == y ? pow_fast(x, z) : x^y
303303
end

0 commit comments

Comments
 (0)