17 lines
429 B
C
17 lines
429 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "dusk.h"
|
|
|
|
/**
|
|
* Finds the next power of two greater than or equal to the given value.
|
|
*
|
|
* @param value The value to find the next power of two for.
|
|
* @return The next power of two greater than or equal to the value.
|
|
*/
|
|
uint32_t mathNextPowTwo(uint32_t value); |