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

feat: fptower and tests #1239

Merged
merged 29 commits into from
Aug 8, 2024
Merged

feat: fptower and tests #1239

merged 29 commits into from
Aug 8, 2024

Conversation

0xWOLAND
Copy link
Contributor

@0xWOLAND 0xWOLAND commented Aug 3, 2024

Fp Tower precompiles:

  • Fp add
  • Fp mul
  • Fp2 mul

@0xWOLAND 0xWOLAND requested review from tamirhemo and puma314 August 3, 2024 09:51
@@ -0,0 +1,332 @@
use crate::air::{BaseAirBuilder, MachineAir, Polynomial, SP1AirBuilder};
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you clean up the unused imports?

}

#[derive(Default)]
pub struct FpAddAssignChip<P> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can have this struct be like this

pub struct FpOperationChip<P> {
   pub operation: Operation
}

And then you can just have FpOperationCols that basically will compile all of the logic for add/mul

@tamirhemo tamirhemo merged commit d66664f into experimental Aug 8, 2024
5 of 6 checks passed
@tamirhemo tamirhemo deleted the bhargav/fptower branch August 8, 2024 05:34
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