Skip to content

Commit 9158c15

Browse files
kshyattvchuravy
andcommitted
Update src/device/intrinsics/math.jl
Co-authored-by: Valentin Churavy <[email protected]>
1 parent ed8ee84 commit 9158c15

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
@@ -217,7 +217,7 @@ end
217217
@device_override function Base.exp10(h::Float16)
218218
# perform computation in Float32 domain
219219
f = Float32(h)
220-
f = fma(f, log2(10.f0), reinterpret(Float32, Base.sign_mask(Float32)))
220+
f = fma(f, log2(10.f0), -0.0f0)
221221
f = @fastmath exp2(f)
222222
r = Float16(f)
223223

0 commit comments

Comments
 (0)