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

Lazy division overflow detection #84

Closed
oscbyspro opened this issue Apr 20, 2023 · 1 comment
Closed

Lazy division overflow detection #84

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

Comments

@oscbyspro
Copy link
Owner

oscbyspro commented Apr 20, 2023

There's some double counting going on in the division "reporting overflow" methods. Instead of predicting the overflow prior to performing the operation, it's probably better to report it as it occurs.

@oscbyspro oscbyspro added the brrr such code, much wow label Apr 20, 2023
@oscbyspro
Copy link
Owner Author

oscbyspro commented Apr 20, 2023

This may require an internal "quotientAndRemainderReportingOverflow" method, and if that's the case then I will consider adding it as a protocol requirement.

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