@@ -13,14 +13,14 @@ import Core: Float32, Float16
13
13
# macro _const_convert(irr,T,r)
14
14
# :($T($irr, $r))
15
15
# 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
24
24
25
25
for T in (:Float32 , :Float16 ), irr in (:π , :ℯ ), r in (:RoundUp , :RoundDown )
26
26
@eval begin
0 commit comments