Lines Matching +full:bit +full:- +full:per +full:- +full:mux

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Bit operations for the Hexagon architecture
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
20 * (i.e. I get to shift by #5-2 (32 bits per long, 4 bytes per access),
23 * Typically, R10 is clobbered for address, R11 bit nr, and R12 is temp
27 * test_and_clear_bit - clear a bit and return its old value
28 * @nr: bit number to clear
41 " {if (!P1) jump 1b; %0 = mux(P0,#1,#0);}\n" in test_and_clear_bit()
51 * test_and_set_bit - set a bit and return its old value
52 * @nr: bit number to set
65 " {if (!P1) jump 1b; %0 = mux(P0,#1,#0);}\n" in test_and_set_bit()
77 * test_and_change_bit - toggle a bit and return its old value
78 * @nr: bit number to set
91 " {if (!P1) jump 1b; %0 = mux(P0,#1,#0);}\n" in test_and_change_bit()
123 * These are allowed to be non-atomic. In fact the generic flavors are
124 * in non-atomic.h. Would it be better to use intrinsics for this?
148 /* Apparently, at least some of these are allowed to be non-atomic */
198 * ffz - find first zero in word.
214 * fls - find last (most-significant) bit set
234 * ffs - find first bit set
255 * __ffs - find first bit in word.
258 * Undefined if no bit exists, so code should check against 0 first.
275 * __fls - find last (most-significant) set bit in a long word
278 * Undefined if no set bit exists, so code should check against 0 first.
293 #include <asm-generic/bitops/lock.h>
294 #include <asm-generic/bitops/non-instrumented-non-atomic.h>
296 #include <asm-generic/bitops/fls64.h>
297 #include <asm-generic/bitops/sched.h>
298 #include <asm-generic/bitops/hweight.h>
300 #include <asm-generic/bitops/le.h>
301 #include <asm-generic/bitops/ext2-atomic.h>