vbos/include/math.h
Michael Shaw 43d36f8703 math: add SPDX-License-Identifiers
Add the GPL-2.0-only license identifier to the top of these source files
2023-04-19 17:37:56 -04:00

14 lines
318 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _MATH_H_
#define _MATH_H_
#include <stdint.h>
#include <stddef.h>
size_t log2(size_t n);
size_t npow2(size_t n);
void bitmap_set(char *bitmap, size_t n);
void bitmap_clear(char *bitmap, size_t n);
uint8_t bitmap_get(char *bitmap, size_t n);
#endif /* _MATH_H_ */