Skip to content

Commit

Permalink
fix: Fix non-amd64 code
Browse files Browse the repository at this point in the history
  • Loading branch information
sp301415 committed Dec 12, 2023
1 parent 3841ca2 commit 0fe4f01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions math/poly/asm_fft.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ func invFFTInPlace(coeffs, wNjInv []complex128) {
}
}

// unTwistInPlace untwists the coefficients after inverse FFT.
// untwistInPlace untwists the coefficients after inverse FFT.
// Equivalent to coeffs * w2NjInv.
func unTwistInPlace(coeffs, w2NjInv []complex128) {
func untwistInPlace(coeffs, w2NjInv []complex128) {
for i := 0; i < len(coeffs); i++ {
c := coeffs[i] * w2NjInv[i]
coeffs[i] = complex(math.Round(real(c)), math.Round(imag(c)))
}
}

// unTwistAndScaleInPlace untwists the coefficients and scales it with maxT.
func unTwistAndScaleInPlace(coeffs, w2NjInv []complex128, maxT float64) {
// untwistAndScaleInPlace untwists the coefficients and scales it with maxT.
func untwistAndScaleInPlace(coeffs, w2NjInv []complex128, maxT float64) {
for i := 0; i < len(coeffs); i++ {
c := coeffs[i] * w2NjInv[i]
cr := real(c)
Expand Down

0 comments on commit 0fe4f01

Please sign in to comment.