Source code for the Trusted Boot Module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tbm-mcu/include/bitops.h

11 lines
263 B

#pragma once
#include <stdlib.h>
unsigned ilog2(unsigned n);
int is_bit_set(void *base, size_t n);
void set_bit(void *base, size_t n);
void clear_bit(void *base, size_t n);
size_t next_set_bit(void *base, size_t n);
size_t next_clear_bit(void *base, size_t n);