Skip to content

Fix Signed mulh64 - #85

Closed
ghost wants to merge 4 commits into
masterfrom
unknown repository
Closed

ghost wants to merge 4 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Oct 6, 2026

Copy link
Copy Markdown

The mulh64 fallback implementation produced incorrect high 64-bit results for some mixed-sign operands.
This changes the implementation to compute the unsigned high product first, then applies the signed correction to the high half.
A regression test was added for mixed-sign operands where the expected high 64 bits are -1.

Repository owner closed this by deleting the head repository Oct 14, 2026
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