Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyong1997 committed Aug 27, 2024
1 parent 3c34c50 commit 0e3a806
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arith/src/extension_field/gf2_128x8/neon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,14 @@ impl Add<GF2> for NeonGF2_128x8 {
let rhs_extended = unsafe { transmute::<[u32; 4], uint32x4_t>([rhs.v as u32, 0, 0, 0]) };
NeonGF2_128x8 {
v: [
unsafe { gfmul(self.v[0], rhs_extended) },
unsafe { gfmul(self.v[1], rhs_extended) },
unsafe { gfmul(self.v[2], rhs_extended) },
unsafe { gfmul(self.v[3], rhs_extended) },
unsafe { gfmul(self.v[4], rhs_extended) },
unsafe { gfmul(self.v[5], rhs_extended) },
unsafe { gfmul(self.v[6], rhs_extended) },
unsafe { gfmul(self.v[7], rhs_extended) },
unsafe { gfadd(self.v[0], rhs_extended) },
unsafe { gfadd(self.v[1], rhs_extended) },
unsafe { gfadd(self.v[2], rhs_extended) },
unsafe { gfadd(self.v[3], rhs_extended) },
unsafe { gfadd(self.v[4], rhs_extended) },
unsafe { gfadd(self.v[5], rhs_extended) },
unsafe { gfadd(self.v[6], rhs_extended) },
unsafe { gfadd(self.v[7], rhs_extended) },
],
}
}
Expand Down

0 comments on commit 0e3a806

Please sign in to comment.