mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-10 07:08:03 -05:00
feat(hlapi): Get num_bits from FheUint* types
This commit is contained in:
committed by
titouantanguy
parent
d9eca01631
commit
fffdc3862e
@@ -96,6 +96,10 @@ impl FheBool {
|
||||
self.ciphertext.current_device()
|
||||
}
|
||||
|
||||
pub fn num_bits() -> usize {
|
||||
1
|
||||
}
|
||||
|
||||
/// Moves (in-place) the ciphertext to the desired device.
|
||||
///
|
||||
/// Does nothing if the ciphertext is already in the desired device
|
||||
|
||||
@@ -106,6 +106,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub fn num_bits() -> usize {
|
||||
Id::num_bits()
|
||||
}
|
||||
|
||||
/// Moves (in-place) the ciphertext to the desired device.
|
||||
///
|
||||
/// Does nothing if the ciphertext is already in the desired device
|
||||
|
||||
@@ -151,6 +151,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub fn num_bits() -> usize {
|
||||
Id::num_bits()
|
||||
}
|
||||
|
||||
pub(in crate::high_level_api) fn move_to_device_of_server_key_if_set(&mut self) {
|
||||
self.ciphertext.move_to_device_of_server_key_if_set();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user