Skip to content

Commit 15c9dee

Browse files
kshyattvchuravy
andcommitted
Update src/device/intrinsics/math.jl
Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
1 parent 552f947 commit 15c9dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/intrinsics/math.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ end
174174
@device_override function Base.exp(h::Float16)
175175
# perform computation in Float32 domain
176176
f = Float32(h)
177-
f = fma(f, reinterpret(Float32, reinterpret(UInt32, log2(Float32(ℯ)))), -0.0f0)
177+
f = fma(f, log2(Float32(ℯ)), -0.0f0)
178178
f = @fastmath exp2(f)
179179
r = Float16(f)
180180

0 commit comments

Comments
 (0)