Lines Matching +full:clear +full:- +full:bit
2 * memchr - find a character in a memory zone
4 * Copyright (c) 2014-2022, Arm Limited.
5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
10 * ARMv8-a, AArch64
41 * For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits
42 * per byte. For each tuple, bit 0 is set if the relevant byte matched the
43 * requested character and bit 1 is not used (faster than using a 32bit
59 /* Work with aligned 32-byte chunks */
67 * Input string is not 32-byte aligned. We calculate the syndrome
79 addp vend.16b, vhas_chr1.16b, vhas_chr2.16b /* 256->128 */
80 addp vend.16b, vend.16b, vend.16b /* 128->64 */
82 /* Clear the soff*2 lower bits */
109 addp vend.16b, vhas_chr1.16b, vhas_chr2.16b /* 256->128 */
110 addp vend.16b, vend.16b, vend.16b /* 128->64 */
112 /* Only do the clear for the last possible block */
116 /* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */
125 /* Count the trailing zeros using bit reversing */
127 /* Compensate the last post-increment */