Skip to content

Conversation

@puji4810
Copy link
Contributor

  • mul_parity_32,64: use 63 - beta_minus_1 (shifting by 64 when beta_minus_1 == 0 is UB; aligns with delta)
  • multiple_of_pow2: guard e2 >= 0 before shifting to avoid invalid shift counts from negative-to-unsigned conversion
  • dragonbox_main: check the original mantissa before m2 |= mflags; after setting the implicit bit, m2 is never zero and the branch is unreachable

- mul_parity_{32,64}: use 63 - beta_minus_1
- multiple_of_pow2: require e2 >= 0
- dragonbox_main: check original mantissa before m2|=mflags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant