Skip to content

Conversation

@yperbasis
Copy link
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
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
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