Skip to content

fix: reintroduce BitReverse in fft package as deprecated for backward…#740

Merged
gbotrel merged 1 commit intomasterfrom
fix/breversecompat
Sep 7, 2025
Merged

fix: reintroduce BitReverse in fft package as deprecated for backward…#740
gbotrel merged 1 commit intomasterfrom
fix/breversecompat

Conversation

@gbotrel
Copy link
Copy Markdown
Collaborator

@gbotrel gbotrel commented Sep 7, 2025

Previous #736 PR made upstream usage break (...) since it removed the BitReverse function from the individual field fft pacakges. Added in back as deprecated.

@gbotrel gbotrel requested a review from Copilot September 7, 2025 03:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reintroduces the BitReverse function to individual field FFT packages as deprecated wrapper functions to maintain backward compatibility. A previous PR #736 removed these functions causing breaking changes for upstream users.

  • Adds deprecated BitReverse wrapper functions to all field FFT packages
  • Updates the code generation template to include the deprecated function
  • Maintains backward compatibility while directing users to the new utils.BitReverse implementation

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
field/generator/internal/templates/fft/domain.go.tmpl Updates template to generate deprecated BitReverse wrapper in all field packages
field/koalabear/fft/domain.go Adds deprecated BitReverse wrapper function
field/goldilocks/fft/domain.go Adds deprecated BitReverse wrapper function
field/babybear/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bw6-761/fr/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bw6-633/fr/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bn254/fr/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bls24-317/fr/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bls24-315/fr/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bls12-381/fr/fft/domain.go Adds deprecated BitReverse wrapper function
ecc/bls12-377/fr/fft/domain.go Adds deprecated BitReverse wrapper function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

return read, nil
}


Copy link

Copilot AI Sep 7, 2025

Choose a reason for hiding this comment

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

[nitpick] Remove the extra blank line at line 315. There should only be one blank line before the function documentation.

Suggested change

Copilot uses AI. Check for mistakes.
@gbotrel gbotrel merged commit bb2b49e into master Sep 7, 2025
6 checks passed
@gbotrel gbotrel deleted the fix/breversecompat branch September 7, 2025 03:50
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