mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 22:28:01 -05:00
chore(fhe_strings): remove some par_bridge
This commit is contained in:
@@ -152,9 +152,8 @@ impl ServerKey {
|
||||
// Subtraction by 32 makes the character uppercase
|
||||
uppercase
|
||||
.chars_mut()
|
||||
.iter_mut()
|
||||
.zip(lowercase_chars)
|
||||
.par_bridge()
|
||||
.par_iter_mut()
|
||||
.zip(lowercase_chars.into_par_iter())
|
||||
.for_each(|(char, is_lowercase)| {
|
||||
let mut subtract = self.key.create_trivial_radix(32, 4);
|
||||
|
||||
@@ -206,9 +205,8 @@ impl ServerKey {
|
||||
// Addition by 32 makes the character lowercase
|
||||
lowercase
|
||||
.chars_mut()
|
||||
.iter_mut()
|
||||
.par_iter_mut()
|
||||
.zip(uppercase_chars)
|
||||
.par_bridge()
|
||||
.for_each(|(char, is_uppercase)| {
|
||||
let mut add = self.key.create_trivial_radix(32, 4);
|
||||
|
||||
|
||||
@@ -68,9 +68,8 @@ impl SplitAsciiWhitespace {
|
||||
// Apply the mask to get the result
|
||||
result
|
||||
.chars_mut()
|
||||
.iter_mut()
|
||||
.zip(mask.chars())
|
||||
.par_bridge()
|
||||
.par_iter_mut()
|
||||
.zip(mask.chars().par_iter())
|
||||
.for_each(|(char, mask_u8)| {
|
||||
sk.key
|
||||
.bitand_assign_parallelized(char.ciphertext_mut(), mask_u8.ciphertext());
|
||||
|
||||
Reference in New Issue
Block a user