Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util.h>
Go to the source code of this file.
Macros | |
#define | BITMAP_TEST 0 |
#define | BITWORD_BITS (sizeof(RBitword) * 8) |
#define | BITWORD_BITS_MASK (BITWORD_BITS - 1) |
#define | BITWORD_MULT(bit) (((bit) + (BITWORD_BITS_MASK)) & ~(BITWORD_BITS_MASK)) |
#define | BITWORD_TEST(x, y) (((x) >> (y)) & 1) |
#define | BITMAP_WORD_COUNT(bit) (BITWORD_MULT(bit) >> BITWORD_BITS_SHIFT) |
Functions | |
RZ_API RzBitmap * | rz_bitmap_new (size_t len) |
RZ_API void | rz_bitmap_set_bytes (RzBitmap *b, const ut8 *buf, int len) |
RZ_API void | rz_bitmap_free (RzBitmap *b) |
RZ_API void | rz_bitmap_set (RzBitmap *b, size_t bit) |
RZ_API void | rz_bitmap_unset (RzBitmap *b, size_t bit) |
RZ_API int | rz_bitmap_test (RzBitmap *b, size_t bit) |
#define BITMAP_WORD_COUNT | ( | bit | ) | (BITWORD_MULT(bit) >> BITWORD_BITS_SHIFT) |
#define BITWORD_BITS_MASK (BITWORD_BITS - 1) |
#define BITWORD_MULT | ( | bit | ) | (((bit) + (BITWORD_BITS_MASK)) & ~(BITWORD_BITS_MASK)) |
Definition at line 16 of file bitmap.c.
References b, BITMAP_WORD_COUNT, calloc(), len, NULL, RBitword, and RZ_NEW0.
Referenced by rz_bin_dmp64_init_bmp_pages().
Definition at line 38 of file bitmap.c.
References b, bit, BITWORD_BITS_MASK, BITWORD_BITS_SHIFT, length, and RBitword.
Definition at line 52 of file bitmap.c.
References b, bit, BITWORD_BITS_MASK, BITWORD_BITS_SHIFT, BITWORD_TEST, length, and RBitword.
Referenced by rz_bin_dmp64_init_bmp_pages().
Definition at line 45 of file bitmap.c.
References b, bit, BITWORD_BITS_MASK, BITWORD_BITS_SHIFT, length, and RBitword.