Skip to content

Commit

Permalink
Update src/device/intrinsics/math.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Churavy <[email protected]>
  • Loading branch information
kshyatt and vchuravy authored Mar 3, 2025
1 parent 0308d56 commit 75d3fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/intrinsics/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ end
@device_override function Base.exp10(h::Float16)
# perform computation in Float32 domain
f = Float32(h)
f = fma(f, log2(10.f0), reinterpret(Float32, Base.sign_mask(Float32)))
f = fma(f, log2(10.f0), -0.0f0)
f = @fastmath exp2(f)
r = Float16(f)

Expand Down

0 comments on commit 75d3fa9

Please sign in to comment.