Skip to content

fix: fix ckks.rescale verifier to use exact log2 on expected scale factor - #3197

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_948350422
Jul 15, 2026
Merged

fix: fix ckks.rescale verifier to use exact log2 on expected scale factor#3197
copybara-service[bot] merged 1 commit into
mainfrom
test_948350422

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

fix: fix ckks.rescale verifier to use exact log2 on expected scale factor

This fixes a small issue where a q prime was chosen such that APInt::nearestLog2 calculates 23 when the log2 was 23.56... and it caused the ckks.rescale verifier to emit an error that the expected rescale was not dropping 24 bits.

…ctor

This fixes a small issue where a q prime was chosen such that APInt::nearestLog2 calculates 23 when the log2 was 23.56... and it caused the ckks.rescale verifier to emit an error that the expected rescale was not dropping 24 bits.

PiperOrigin-RevId: 948413937
@copybara-service
copybara-service Bot merged commit 26e049a into main Jul 15, 2026
1 of 2 checks passed
@copybara-service
copybara-service Bot deleted the test_948350422 branch July 15, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant