aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c3
1 files changed, 1 insertions, 2 deletions
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;