Skip to content

Commit 47ec910

Browse files
authored
Merge pull request #18463 from Sacha0/unexportfm
Fix #18460 (deprecate vectorized FastMath functions in Base.FastMath, not Base)
2 parents d0e7684 + f16597a commit 47ec910

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

base/deprecated.jl

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -908,17 +908,19 @@ for f in (
908908
#=:log,=# :log2, :log10, :lgamma, #=:log1p,=# :sqrt,
909909
# base/floatfuncs.jl
910910
:abs, :abs2, :angle, :isnan, :isinf, :isfinite,
911-
# base/fastmath.jl
912-
:acos_fast, :acosh_fast, :angle_fast, :asin_fast, :asinh_fast,
913-
:atan_fast, :atanh_fast, :cbrt_fast, :cis_fast, :cos_fast,
914-
:cosh_fast, :exp10_fast, :exp2_fast, :exp_fast, :expm1_fast,
915-
:lgamma_fast, :log10_fast, :log1p_fast, :log2_fast, :log_fast,
916-
:sin_fast, :sinh_fast, :sqrt_fast, :tan_fast, :tanh_fast,
917911
# base/complex.jl
918912
:cis,
919913
)
920914
@eval @dep_vectorize_1arg Number $f
921915
end
916+
# base/fastmath.jl
917+
for f in ( :acos_fast, :acosh_fast, :angle_fast, :asin_fast, :asinh_fast,
918+
:atan_fast, :atanh_fast, :cbrt_fast, :cis_fast, :cos_fast,
919+
:cosh_fast, :exp10_fast, :exp2_fast, :exp_fast, :expm1_fast,
920+
:lgamma_fast, :log10_fast, :log1p_fast, :log2_fast, :log_fast,
921+
:sin_fast, :sinh_fast, :sqrt_fast, :tan_fast, :tanh_fast )
922+
eval(FastMath, :(Base.@dep_vectorize_1arg Number $f))
923+
end
922924
for f in (
923925
:invdigamma, # base/special/gamma.jl
924926
:erfinc, :erfcinv, # base/special/erf.jl
@@ -964,11 +966,13 @@ for f in (
964966
:besselhx, :hankelh1, :hankelh2, :hankelh1x, :hankelh2x,
965967
# base/math.jl
966968
:log, :hypot, :atan2,
967-
# base/fastmath.jl
968-
:pow_fast, :atan2_fast, :hypot_fast, :max_fast, :min_fast, :minmax_fast,
969969
)
970970
@eval @dep_vectorize_2arg Number $f
971971
end
972+
# base/fastmath.jl
973+
for f in (:pow_fast, :atan2_fast, :hypot_fast, :max_fast, :min_fast, :minmax_fast)
974+
eval(FastMath, :(Base.@dep_vectorize_2arg Number $f))
975+
end
972976
for f in (
973977
:max, :min, # base/math.jl
974978
:copysign, :flipsign, # base/floatfuncs.jl

0 commit comments

Comments
 (0)