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

Better computation of loose bounds #807

Merged
merged 1 commit into from
May 28, 2020

Conversation

JasonGross
Copy link
Collaborator

@JasonGross JasonGross commented May 27, 2020

We now compute the loose bounds by recording the number of additions
and/or balanced subtractions we want to be able to do in a row before we
need to multiply and carry. Note that balanced subtraction always takes
a bit more overhead than addition.

This is a more conservative variant of #799 that doesn't actually change
the bounds, and makes the genuine change of #799 easier to see, namely,
reducing headspace_add_count from 2 to 1.

@JasonGross
Copy link
Collaborator Author

@andres-erbsen @jadephilipoom Could you review the changes I made here to the definition of loose_upperbounds in src/UnsaturatedSolinasHeuristics.v?

Copy link
Collaborator

@jadephilipoom jadephilipoom left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me.

We now compute the loose bounds by recording the number of additions
and/or balanced subtractions we want to be able to do in a row before we
need to multiply and carry.  Note that balanced subtraction always takes
a bit more overhead than addition.

This is a more conservative variant of mit-plv#799 that doesn't actually change
the bounds, and makes the genuine change of mit-plv#799 easier to see, namely,
reducing `headspace_add_count` from `2` to `1`.
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.

2 participants