iPXE
bitops.h
Go to the documentation of this file.
1#ifndef _IPXE_BITOPS_H
2#define _IPXE_BITOPS_H
3
4/** @file
5 *
6 * Bit operations
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <bits/bitops.h>
14
15void set_bit ( unsigned int bit, volatile void *bits );
16void clear_bit ( unsigned int bit, volatile void *bits );
17int test_and_set_bit ( unsigned int bit, volatile void *bits );
18int test_and_clear_bit ( unsigned int bit, volatile void *bits );
19
20#endif /* _IPXE_BITOPS_H */
x86 bit operations
static volatile void * bits
Definition bitops.h:28
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
static unsigned int unsigned int bit
Definition bigint.h:392
int test_and_clear_bit(unsigned int bit, volatile void *bits)
int test_and_set_bit(unsigned int bit, volatile void *bits)
#define clear_bit(bit, loc)
Definition vxge_main.h:167
#define set_bit(bit, loc)
Definition vxge_main.h:166