Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Yiwu Chen <[email protected]>
  • Loading branch information
soraros committed Oct 16, 2024
1 parent c43a19b commit d5f1fd4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stdlib/src/math/math.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,9 @@ fn _ldexp_impl[
return res

alias integral_type = FPUtils[type].integral_type
var m: SIMD[integral_type, simd_width] = (
exp.cast[integral_type]() + FPUtils[type].exponent_bias()
)
var m = exp.cast[integral_type]() + FPUtils[type].exponent_bias()

return x * (m << FPUtils[type].mantissa_width())._bits_to_float[type]()
return x * __type_of(x)(from_bits=m << FPUtils[type].mantissa_width())


@always_inline
Expand Down

0 comments on commit d5f1fd4

Please sign in to comment.