Skip to content

Commit

Permalink
remove unused K6 constant
Browse files Browse the repository at this point in the history
  • Loading branch information
srijs committed Feb 12, 2024
1 parent aef4670 commit 80ffc2e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/specialized/pclmulqdq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const K2: i64 = 0x1c6e41596;
const K3: i64 = 0x1751997d0;
const K4: i64 = 0x0ccaa009e;
const K5: i64 = 0x163cd6124;
const K6: i64 = 0x1db710640;

const P_X: i64 = 0x1DB710641;
const U_PRIME: i64 = 0x1F7011641;
Expand Down Expand Up @@ -144,7 +143,6 @@ unsafe fn calculate(crc: u32, mut data: &[u8]) -> u32 {
// It's not clear to me, reading the paper, where the xor operations are
// happening or why things are shifting around. This implementation...
// appears to work though!
drop(K6);
let x = arch::_mm_xor_si128(
arch::_mm_clmulepi64_si128(x, k3k4, 0x10),
arch::_mm_srli_si128(x, 8),
Expand Down

0 comments on commit 80ffc2e

Please sign in to comment.