Skip to content

Commit f8ab23a

Browse files
committed
fix: remove unimplemented path from fft ext
1 parent 2b70394 commit f8ab23a

File tree

3 files changed

+12
-60
lines changed

3 files changed

+12
-60
lines changed

field/babybear/fft/kernel_amd64.go

Lines changed: 4 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

field/generator/internal/templates/fft/kernel.amd64.go.tmpl

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,38 +66,22 @@ func kerDITNP_{{$ksize}}(a []{{ $.FF }}.Element, twiddles [][]{{ $.FF }}.Element
6666
{{end}}
6767

6868
func innerDIFWithTwiddlesExt(a []fext.E4, twiddles []{{ .FF }}.Element, start, end, m int) {
69-
if !cpu.SupportAVX512 || m < 16 {
70-
innerDIFWithTwiddlesGenericExt(a, twiddles, start, end, m)
71-
return
72-
}
73-
//todo: use AVX512
69+
innerDIFWithTwiddlesGenericExt(a, twiddles, start, end, m)
7470
}
7571

7672
func innerDITWithTwiddlesExt(a []fext.E4, twiddles []{{ .FF }}.Element, start, end, m int) {
77-
if !cpu.SupportAVX512 || m < 16 {
78-
innerDITWithTwiddlesGenericExt(a, twiddles, start, end, m)
79-
return
80-
}
81-
//todo: use AVX512
73+
innerDITWithTwiddlesGenericExt(a, twiddles, start, end, m)
8274
}
8375

8476

8577
{{range $ki, $klog2 := $.Kernels}}
8678
{{- $ksize := shl 1 $klog2}}
8779

8880
func kerDIFNP_{{$ksize}}Ext(a []fext.E4, twiddles [][]{{ $.FF }}.Element, stage int) {
89-
if !cpu.SupportAVX512 {
90-
kerDIFNP_{{$ksize}}genericExt(a, twiddles, stage)
91-
return
92-
}
93-
//todo: use AVX512
81+
kerDIFNP_{{$ksize}}genericExt(a, twiddles, stage)
9482
}
9583

9684
func kerDITNP_{{$ksize}}Ext(a []fext.E4, twiddles [][]{{ $.FF }}.Element, stage int) {
97-
if !cpu.SupportAVX512 {
98-
kerDITNP_{{$ksize}}genericExt(a, twiddles, stage)
99-
return
100-
}
101-
//todo: use AVX512
85+
kerDITNP_{{$ksize}}genericExt(a, twiddles, stage)
10286
}
10387
{{end}}

field/koalabear/fft/kernel_amd64.go

Lines changed: 4 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)