Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rw0x0 committed Jan 13, 2025
1 parent 2219f0d commit d664b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iris-mpc-gpu/tests/extract_msb_mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(feature = "gpu_dependent")]
// #[cfg(feature = "gpu_dependent")]
mod extract_msb_mod_test {

use cudarc::{
Expand Down Expand Up @@ -109,7 +109,7 @@ mod extract_msb_mod_test {
let mod_ = 1u64 << (16 + B_BITS);
let mut res = Vec::with_capacity(input.len());
for inp in input {
let r = (u64::MAX - ((inp as u64) << B_BITS) + 1) % mod_;
let r = (u64::MAX - ((inp as u64) << B_BITS)) % mod_;
let msb = r >> (B_BITS + 16 - 1) & 1 == 1;
res.push(msb)
}
Expand Down

0 comments on commit d664b18

Please sign in to comment.