Add slice uintptr_low_12_bits method

This commit is contained in:
Nigel Tao committed 2021-02-13 17:19:35 +11:00
1 parent 0834b40d22
commit 81ba41e251
6 files changed
+42 -20

No files matched your search

+4
View File
@@ -21944,6 +21944,10 @@ wuffs_crc32__ieee_hasher__up_arm_crc32(
wuffs_base__slice_u8 v_p = {0};
v_s = (4294967295 ^ self->private_impl.f_state);
while ((((uint64_t)(a_x.len)) > 0) && ((15 & ((uint32_t)(0xFFF & (uintptr_t)(a_x.ptr)))) != 0)) {
v_s = (WUFFS_CRC32__IEEE_TABLE[0][(((uint8_t)((v_s & 255))) ^ a_x.ptr[0])] ^ (v_s >> 8));
a_x = wuffs_base__slice_u8__subslice_i(a_x, 1);
}
{
wuffs_base__slice_u8 i_slice_p = a_x;
v_p.ptr = i_slice_p.ptr;