Skip to content

Commit

Permalink
fix: fixed comments and variable naming (#603)
Browse files Browse the repository at this point in the history
Co-authored-by: Gautam Botrel <[email protected]>
  • Loading branch information
ThomasPiellard and gbotrel authored Jan 14, 2025
1 parent 5e3e49f commit faec8ec
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 44 deletions.
8 changes: 4 additions & 4 deletions ecc/bls12-377/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ecc/bls12-381/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ecc/bls24-315/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ecc/bls24-317/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ecc/bn254/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ecc/bw6-633/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ecc/bw6-761/fr/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions field/babybear/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions field/generator/internal/templates/fft/domain.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ type Domain struct {

// we precompute these mostly to avoid the memory intensive bit reverse permutation in the groth16.Prover

// cosetTable u*<1,g,..,g^(n-1)>
// cosetTable <1, u, u², ..., uⁿ⁻¹> where u is the shifting element
cosetTable []{{ .FF }}.Element

// cosetTable[i][j] = domain.Generator(i-th)SqrtInv ^ j
// cosetTableInv same as cosetTable but with u⁻¹
cosetTableInv []{{ .FF }}.Element
}

Expand Down Expand Up @@ -142,8 +142,8 @@ func (d *Domain) preComputeTwiddles() {

var wg sync.WaitGroup

expTable := func(sqrt {{ .FF }}.Element, t []{{ .FF }}.Element) {
BuildExpTable(sqrt, t)
expTable := func(x {{ .FF }}.Element, t []{{ .FF }}.Element) {
BuildExpTable(x, t)
wg.Done()
}

Expand Down
8 changes: 4 additions & 4 deletions field/goldilocks/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions field/koalabear/fft/domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit faec8ec

Please sign in to comment.