mirror of
https://github.com/apache/nuttx.git
synced 2026-06-11 21:53:37 +08:00
libc: add find_next_zero_bit
The pci ep framework use bitmap manage free bar Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
b18262d78f
commit
4fd78583f7
@@ -93,6 +93,9 @@
|
||||
(*(((FAR unsigned long *)(addr)) + BIT_WORD(nr)) & \
|
||||
BIT_WORD_MASK(nr))
|
||||
|
||||
#define find_first_zero_bit(addr, size) \
|
||||
find_next_zero_bit((addr), (size), 0)
|
||||
|
||||
/****************************************************************************
|
||||
* Type Definitions
|
||||
****************************************************************************/
|
||||
@@ -112,6 +115,11 @@ extern "C"
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
#ifndef __ASSEMBLER__
|
||||
unsigned long find_next_zero_bit(FAR const unsigned long *addr,
|
||||
unsigned long size,
|
||||
unsigned long offset);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user