@@ -13,14 +13,14 @@ import Core: Float32, Float16
1313# macro _const_convert(irr,T,r)
1414# :($T($irr, $r))
1515# end
16- for T in (:Float32 , :Float16 ), irr in (:π , :ℯ ), r in (:RoundUp , :RoundDown )
17- # newT = Symbol(:new,T)
18- @eval begin
19- # $newT(::typeof($irr), ::typeof($r)) = @_const_convert($irr, $T, $r)
20- # @device_override $T(::typeof($irr), ::typeof($r)) = @_const_convert($irr, $T, $r)
21- @device_override $ T (:: typeof ($ irr), :: typeof ($ r)) = Base. Rounding. _convert_rounding ($ T, $ irr, $ r)
22- end
23- end
16+ # for T in (:Float32, :Float16), irr in (:π, :ℯ), r in (:RoundUp, :RoundDown)
17+ # # newT = Symbol(:new,T)
18+ # @eval begin
19+ # # $newT(::typeof($irr), ::typeof($r)) = @_const_convert($irr, $T, $r)
20+ # # @device_override $T(::typeof($irr), ::typeof($r)) = @_const_convert($irr, $T, $r)
21+ # @device_override $T(::typeof($irr), ::typeof($r)) = Base.Rounding._convert_rounding($T, $irr, $r)
22+ # end
23+ # end
2424
2525for T in (:Float32 , :Float16 ), irr in (:π , :ℯ ), r in (:RoundUp , :RoundDown )
2626 @eval begin
0 commit comments