Skip to content

chore: fix comment in generate lookup table#3385

Merged
IceTDrinker merged 1 commit intomainfrom
am/chore/fix-comment
Mar 13, 2026
Merged

chore: fix comment in generate lookup table#3385
IceTDrinker merged 1 commit intomainfrom
am/chore/fix-comment

Conversation

@IceTDrinker
Copy link
Member

  • at some point the code likely took the padding bit into account, the corresponding comment was left unchanged which was an error
  • propagate everywhere this comment was copy/pasted

- at some point the code likely took the padding bit into account, the
corresponding comment was left unchanged which was an error
- propagate everywhere this comment was copy/pasted
@cla-bot cla-bot bot added the cla-signed label Mar 11, 2026
@IceTDrinker IceTDrinker marked this pull request as ready for review March 11, 2026 16:17
Copy link
Contributor

@mayeul-zama mayeul-zama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -63,7 +63,7 @@ uint64_t *generate_identity_lut_pbs(int polynomial_size, int glwe_dimension,
// Modulus of the msg contained in the msg bits and operations buffer
uint64_t modulus_sup = message_modulus * carry_modulus;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to change something here or was only a matter of adjusting the comment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in what way ? normally the code is correct otherwise you would have issues, the reason for the modulus_sup is that the LUT represents the whole plaintext space (so msg + carry)

@IceTDrinker IceTDrinker merged commit 141de58 into main Mar 13, 2026
221 of 222 checks passed
@IceTDrinker IceTDrinker deleted the am/chore/fix-comment branch March 13, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants