Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hlapi): tie scalar ops with corresponding clear type #599

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

tmontaigu
Copy link
Contributor

Operations that used a scalar as right operand where generically implemented meaning a user could, for example, add a u32 to a FheUint8.

Rust only allows operations between matching types, so we do the same thing.

BREAKING CHANGE: This is a braking change on the Rust API, but for the better I believe. On the C API it is not a breaking change as we already made that assocation as it was simpler to implement

Check-list:

  • Check for breaking changes (including serialization changes) and add them to commit message following the conventional commit specification

@cla-bot cla-bot bot added the cla-signed label Oct 2, 2023
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

@slab-ci cpu_fast_test

@github-actions
Copy link

github-actions bot commented Oct 2, 2023

@slab-ci cpu_fast_test

Copy link
Member

@IceTDrinker IceTDrinker left a comment

Choose a reason for hiding this comment

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

nitpick

tfhe/src/high_level_api/integers/types/base.rs Outdated Show resolved Hide resolved
Operations that used a scalar as right operand where generically
implemented meaning a user could, for example, add a u32 to a FheUint8.

Rust only allows operations between matching types, so we do the same
thing.

BREAKING CHANGE: This is a breaking change on the Rust API, but
for the better I believe. On the C API it is not a breaking change
as we already made that association as it was simpler to implement
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

@slab-ci cpu_fast_test

@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Pull Request has been approved 🎉
Launching full test suite...
@slab-ci cpu_test
@slab-ci cpu_integer_test
@slab-ci cpu_multi_bit_test
@slab-ci cpu_wasm_test
@slab-ci csprng_randomness_testing

@tmontaigu tmontaigu merged commit 6ef1f22 into main Oct 2, 2023
20 checks passed
@tmontaigu tmontaigu deleted the hlpi-refactor-scalar branch October 2, 2023 21:17
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.

2 participants