Skip to content

Commit 7a3ab95

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/device/intrinsics/math.jl

+1-1
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)