Skip to content

MulOverflow#75

Merged
holiman merged 1 commit intoholiman:masterfrom
ledgerwatch:mul_overflow
Jun 5, 2020
Merged

MulOverflow#75
holiman merged 1 commit intoholiman:masterfrom
ledgerwatch:mul_overflow

Conversation

@yperbasis
Copy link
Copy Markdown
Contributor

@yperbasis yperbasis commented Jun 5, 2020

I deliberately used full umul for clarity; this operation can be optimised later if need be.

@chfast chfast requested a review from holiman June 5, 2020 12:35
Copy link
Copy Markdown
Owner

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although a benchmark wouldn't hurt too.... :)
It looks like it can be shaved a bit, by not having ph there, and not doing that copy, but instead do the zero-check on the p[4,5,6,7] elements directly ?

@holiman
Copy link
Copy Markdown
Owner

holiman commented Jun 5, 2020

I'm fine with merging this though, improvements can always be done later

@holiman holiman merged commit ccc827b into holiman:master Jun 5, 2020
@yperbasis yperbasis deleted the mul_overflow branch June 5, 2020 14:47
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.

3 participants