Skip to content

Commit

Permalink
fix: Fix variable case
Browse files Browse the repository at this point in the history
  • Loading branch information
sp301415 committed Nov 24, 2024
1 parent 5f3d360 commit cdc0a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tfhe/asm_decompose.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

// decomposePolyAssign decomposes p with respect to gadgetParams and writes it to decomposedOut.
func decomposePolyAssign[T TorusInt](p poly.Poly[T], gadgetParams GadgetParameters[T], decomposedOut []poly.Poly[T]) {
LogLastBaseQ := gadgetParams.LogLastBaseQ()
logLastBaseQ := gadgetParams.LogLastBaseQ()
for i := 0; i < p.Degree(); i++ {
c := num.DivRoundBits(p.Coeffs[i], LogLastBaseQ)
c := num.DivRoundBits(p.Coeffs[i], logLastBaseQ)
for j := gadgetParams.level - 1; j >= 1; j-- {
decomposedOut[j].Coeffs[i] = c & (gadgetParams.base - 1)
c >>= gadgetParams.logBase
Expand Down

0 comments on commit cdc0a66

Please sign in to comment.