From ac33357e7ce7c474aeaffc92e381020289d767a2 Mon Sep 17 00:00:00 2001 From: allusive-dev Date: Mon, 30 Oct 2023 15:12:21 +1100 Subject: Version 1.0 --- src/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 8a27f39..c236a4a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -36,8 +36,7 @@ void report_allocation_failure(const char *func, const char *file, unsigned int /// Calculates next closest power of two of 32bit integer n /// ref: https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2 /// -int next_power_of_two(int n) -{ +int next_power_of_two(int n) { n--; n |= n >> 1; n |= n >> 2; -- cgit v1.2.3