crash.software
Projects
Pull Requests
Issues
Builds
criu
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
criu
Files
🤬
Sign In
94ac9ee3
ROOT
/
include
/
common
/
arch
/
ppc64
/
asm
/
bitops.h
Search
History
211 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
__CR_BITOPS_H__
DIV_ROUND_UP
(
n,d
)
BITS_TO_LONGS
(
nr
)
DECLARE_BITMAP
(
name,bits
)
BITMAP_SIZE
(
name
)
__stringify_in_c
(
...
)
stringify_in_c
(
...
)
BIT_MASK
(
nr
)
BIT_WORD
(
nr
)
PPC_BITLSHIFT
(
be
)
PPC_BIT
(
bit
)
PPC_BITMASK
(
bs,be
)
PPC_INST_LDARX
___PPC_RA
(
a
)
___PPC_RB
(
b
)
___PPC_RS
(
s
)
__PPC_EH
(
eh
)
___PPC_RT
(
t
)
PPC_LDARX
(
t,a,b,eh
)
PPC_LLARX
(
t,a,b,eh
)
DEFINE_BITOP
(
fn,op
)
DEFINE_TESTOP
(
fn,op,prefix,postfix,eh
)
BITOP_WORD
(
nr
)
for_each_bit
(
i,bitmask
)
DEFINE_BITOP(set_bits, or)
(
DEFINE_BITOP(set_bits, or),DEFINE_BITOP(set_bits, or)DEFINE_BITOP(set_bits, or)
)
{...}
:
DEFINE_BITOP(set_bits, or)
DEFINE_BITOP(clear_bits, andc)
(
DEFINE_BITOP(clear_bits, andc),DEFINE_BITOP(clear_bits, andc)DEFINE_BITOP(clear_bits, andc)
)
{...}
:
DEFINE_BITOP(clear_bits, andc)
DEFINE_BITOP(change_bits, xor)
(
DEFINE_BITOP(change_bits, xor),DEFINE_BITOP(change_bits, xor)DEFINE_BITOP(change_bits, xor)
)
{...}
:
DEFINE_BITOP(change_bits, xor)
set_bit
(
int,volatile unsigned long*
)
{...}
:
__inline__ void
clear_bit
(
int,volatile unsigned long*
)
{...}
:
__inline__ void
change_bit
(
int,volatile unsigned long*
)
{...}
:
__inline__ void
test_bit
(
int,const volatile unsigned long*
)
{...}
:
int
DEFINE_TESTOP(test_and_set_bits, or, "\nLWSYNC\n", "\nsync\n", 0)
(
DEFINE_TESTOP(test_and_set_bits, or, "\nLWSYNC\n", "\nsync\n", 0),DEFINE_TESTOP(test_and_set_bits, or, "\nLWSYNC\n", "\nsync\n", 0)DEFINE_TESTOP(test_and_set_bits, or, "\nLWSYNC\n", "\nsync\n", 0)
)
{...}
:
DEFINE_TESTOP(test_and_set_bits, or, "\nLWSYNC\n", "\nsync\n", 0)
test_and_set_bit
(
unsigned long,volatile unsigned long*
)
{...}
:
__inline__ int
__ilog2
(
unsigned long
)
{...}
:
__inline__ __attribute__((const)) int
__ffs
(
unsigned long
)
{...}
:
__inline__ unsigned long
find_next_bit
(
const unsigned long*,unsigned long,unsigned long
)
{...}
:
unsigned long
All occurrences
Please wait...
Page is in error, reload to recover