VSF Documented
|
#include "../compiler/compiler.h"
Go to the source code of this file.
Macros | |
#define | __vsf_bitmap(__name) __name##_bitmap_t |
#define | __vsf_declare_bitmap_ex(__name, __bit_size) |
#define | __vsf_declare_bitmap(__name, __bit_size) __vsf_declare_bitmap_ex(__vsf_bitmap(__name), __bit_size) |
#define | __vsf_bitmap_get0(__bitmap_ptr, __bit) (((uintalu_t *)__bitmap_ptr)[(__bit) / __optimal_bit_sz] & ((uintalu_t)1 << ((__bit) & __optimal_bit_msk))) |
#define | __vsf_bitmap_get1(__bitmap_ptr, __bit, __pbit_val) |
#define | __vsf_bitmap_set(__bitmap_ptr, __bit) |
#define | __vsf_bitmap_clear(__bitmap_ptr, __bit) |
bitmap normal access | |
#define | vsf_bitmap(__name) __vsf_bitmap(__name) |
#define | vsf_declare_bitmap(__name, __bit_size) __vsf_declare_bitmap(__name, __bit_size) |
#define | dcl_vsf_bitmap(__name, __bit_size) vsf_declare_bitmap(__name, __bit_size) |
#define | declare_vsf_bitmap(__name, __bit_size) vsf_declare_bitmap(__name, __bit_size) |
#define | vsf_bitmap_get(__bitmap_ptr, __bit, ...) __PLOOC_EVAL(__vsf_bitmap_get, __VA_ARGS__)((__bitmap_ptr), (__bit), ##__VA_ARGS__) |
#define | vsf_bitmap_set(__bitmap_ptr, __bit) __vsf_bitmap_set((uintalu_t *)(__bitmap_ptr), (__bit)) |
#define | vsf_bitmap_clear(__bitmap_ptr, __bit) __vsf_bitmap_clear((uintalu_t *)(__bitmap_ptr), (__bit)) |
#define | vsf_bitmap_set_range(__bitmap_ptr, __begin_bit, __end_bit) __vsf_bitmap_range_assign((uintalu_t *)(__bitmap_ptr), (__begin_bit), (__end_bit), 1) |
#define | vsf_bitmap_clear_range(__bitmap_ptr, __begin_bit, __end_bit) __vsf_bitmap_range_assign((uintalu_t *)(__bitmap_ptr), (__begin_bit), (__end_bit), 0) |
#define | vsf_bitmap_reset(__bitmap_ptr, __bit_size) memset(__bitmap_ptr, 0, ((uint_fast32_t)__bit_size + 7) >> 3) |
#define | vsf_bitmap_ffz(__bitmap_ptr, __bit_size) __vsf_bitmap_ffz((uintalu_t *)(__bitmap_ptr), (__bit_size)) |
#define | vsf_bitmap_ffs(__bitmap_ptr, __bit_size) __vsf_bitmap_ffs((uintalu_t *)(__bitmap_ptr), (__bit_size)) |
Functions | |
void | __vsf_bitmap_range_assign (uintalu_t *bitmap_ptr, int_fast32_t begin_bit, int_fast32_t end_bit, int_fast32_t value) |
int_fast32_t | __vsf_bitmap_ffz (uintalu_t *bitmap_ptr, int_fast32_t bit_size) |
int_fast32_t | __vsf_bitmap_ffs (uintalu_t *bitmap_ptr, int_fast32_t bit_size) |
#define __vsf_declare_bitmap_ex | ( | __name, | |
__bit_size | |||
) |
#define __vsf_declare_bitmap | ( | __name, | |
__bit_size | |||
) | __vsf_declare_bitmap_ex(__vsf_bitmap(__name), __bit_size) |
#define __vsf_bitmap_get0 | ( | __bitmap_ptr, | |
__bit | |||
) | (((uintalu_t *)__bitmap_ptr)[(__bit) / __optimal_bit_sz] & ((uintalu_t)1 << ((__bit) & __optimal_bit_msk))) |
#define __vsf_bitmap_get1 | ( | __bitmap_ptr, | |
__bit, | |||
__pbit_val | |||
) |
#define __vsf_bitmap_set | ( | __bitmap_ptr, | |
__bit | |||
) |
#define __vsf_bitmap_clear | ( | __bitmap_ptr, | |
__bit | |||
) |
#define vsf_bitmap | ( | __name | ) | __vsf_bitmap(__name) |
#define vsf_declare_bitmap | ( | __name, | |
__bit_size | |||
) | __vsf_declare_bitmap(__name, __bit_size) |
#define dcl_vsf_bitmap | ( | __name, | |
__bit_size | |||
) | vsf_declare_bitmap(__name, __bit_size) |
#define declare_vsf_bitmap | ( | __name, | |
__bit_size | |||
) | vsf_declare_bitmap(__name, __bit_size) |
#define vsf_bitmap_get | ( | __bitmap_ptr, | |
__bit, | |||
... | |||
) | __PLOOC_EVAL(__vsf_bitmap_get, __VA_ARGS__)((__bitmap_ptr), (__bit), ##__VA_ARGS__) |
#define vsf_bitmap_set | ( | __bitmap_ptr, | |
__bit | |||
) | __vsf_bitmap_set((uintalu_t *)(__bitmap_ptr), (__bit)) |
#define vsf_bitmap_clear | ( | __bitmap_ptr, | |
__bit | |||
) | __vsf_bitmap_clear((uintalu_t *)(__bitmap_ptr), (__bit)) |
#define vsf_bitmap_set_range | ( | __bitmap_ptr, | |
__begin_bit, | |||
__end_bit | |||
) | __vsf_bitmap_range_assign((uintalu_t *)(__bitmap_ptr), (__begin_bit), (__end_bit), 1) |
#define vsf_bitmap_clear_range | ( | __bitmap_ptr, | |
__begin_bit, | |||
__end_bit | |||
) | __vsf_bitmap_range_assign((uintalu_t *)(__bitmap_ptr), (__begin_bit), (__end_bit), 0) |
#define vsf_bitmap_reset | ( | __bitmap_ptr, | |
__bit_size | |||
) | memset(__bitmap_ptr, 0, ((uint_fast32_t)__bit_size + 7) >> 3) |
#define vsf_bitmap_ffz | ( | __bitmap_ptr, | |
__bit_size | |||
) | __vsf_bitmap_ffz((uintalu_t *)(__bitmap_ptr), (__bit_size)) |
#define vsf_bitmap_ffs | ( | __bitmap_ptr, | |
__bit_size | |||
) | __vsf_bitmap_ffs((uintalu_t *)(__bitmap_ptr), (__bit_size)) |
|
extern |
|
extern |
|
extern |