INNER CODE UNIT · Go
main
Consensys/gnark-crypto · internal/generator/main.go:52
func main() {
start := time.Now()
go spinner(stopSpinner)
baseDir, err := filepath.Abs(filepath.Join("..", ".."))
assertNoError(err)
// first we loop through the field arithmetic we must generate.
// then, we create the common files (only once) for the assembly code.
asmDirBuildPath := filepath.Join(baseDir, "field", "asm")
// this enable the generation of fft functions;
// the parameters are hard coded in a lookup table for now for the modulus we use.
fftConfig := &fieldConfig.FFT{}
var wg sync.WaitGroup
for _, conf := range config.Fields {
wg.Add(1)