Skip to content

Commit ba3f784

Browse files
committed
a64: Remove static from zero constant
This turns this into a memory-read rather than a `movi`. Avoid static!
1 parent 65ae7ce commit ba3f784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/CRC/CRC32-a64.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ std::uint32_t CRC32_PMULL(std::span<const std::byte> Data, std::uint32_t CRC)
269269
}
270270

271271
// Reduce 128 to 64
272-
static const uint64x2_t Zero = vdupq_n_u64(0);
272+
const uint64x2_t Zero = vdupq_n_u64(0);
273273
{
274274
const poly64x2_t MulHiLo = pmull_p64<1, 0>(CRCVec.val[0], K3K4);
275275

0 commit comments

Comments
 (0)