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

Precalculate Non-zero divisors for lak #89

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

mcroomp
Copy link
Collaborator

@mcroomp mcroomp commented Jun 11, 2024

Simplify division step in Lak calculations so that we don't need to check for divide by zero.

@Melirius
Copy link
Collaborator

It is OK, do you want to change division later to division-by-multiplication here?

@mcroomp
Copy link
Collaborator Author

mcroomp commented Jun 13, 2024

Not sure the division-by-multiply will fly because of the i16 cast to determine the sign. It messes up a bunch of potential optimizations.

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.

None yet

2 participants