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

chore(hlapi): stabilize FheTypes #1786

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

mayeul-zama
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the cla-signed label Nov 15, 2024
@mayeul-zama mayeul-zama marked this pull request as draft November 15, 2024 09:37
Comment on lines -25 to 32
Type_FheBool,
Type_FheBool = 0,
Type_FheUint2,
Type_FheUint4,
Type_FheUint4 = 1,
Type_FheUint6,
Type_FheUint8,
Type_FheUint8 = 2,
Type_FheUint10,
Type_FheUint12,
Type_FheUint14,
Copy link
Member

Choose a reason for hiding this comment

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

We need all variants to have a value otherwise we'll have an issue later on, I'll check with BC for that and the fact we have more types than them

Copy link
Member

Choose a reason for hiding this comment

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

we probably need a test (with a macro) to check that all values match between the C Enum and the HL one

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.

Wait why is this the C API enum being updated ?

@mayeul-zama mayeul-zama force-pushed the mz/stabilize_fhe_types branch 2 times, most recently from cdb6d94 to de4a613 Compare November 25, 2024 17:05
Comment on lines 131 to 133
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum FheTypes {
Copy link
Member

Choose a reason for hiding this comment

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

this needs to be marked #[repr(i32)] and all the types need to have a value associated, then we'll check with BC it's fine with them

Comment on lines 42 to 44
Type_FheInt2,
Type_FheInt4,
Type_FheInt6,
Copy link
Member

Choose a reason for hiding this comment

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

still missing values here

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