Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galaxy brain multipliedReportingOverflow(by:) #122

Closed
oscbyspro opened this issue Jun 9, 2023 · 1 comment
Closed

Galaxy brain multipliedReportingOverflow(by:) #122

oscbyspro opened this issue Jun 9, 2023 · 1 comment
Labels
brrr such code, much wow
Milestone

Comments

@oscbyspro
Copy link
Owner

From oscbyspro/Numberick#6

It turns out that multipliedReportingOverflow(by:) can be written simply and efficiently with the overflow indicator returned by formTwosComplementSubsequence(true). I recently realized that you can use it to check if unsigned integers equal zero, and if signed integers equal their minimum representable value. [...].

@oscbyspro oscbyspro added the brrr such code, much wow label Jun 9, 2023
@oscbyspro oscbyspro added this to the v3.0.0 milestone Jun 9, 2023
@oscbyspro
Copy link
Owner Author

oscbyspro commented Jun 9, 2023

This requires formTwosComplementSubsequence(_:) (#121).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brrr such code, much wow
Projects
None yet
Development

No branches or pull requests

1 participant