mikolalysenko

mikolalysenko/next-pow-2

Rounds a nonnegative integer up to a power of 2

JavaScript
3
0
MIT License

This is a JavaScript library for rounding nonnegative integers up to the next power of 2, useful for developers working with algorithms or data structures that require power-of-2 values, such as texture dimensions in graphics programming or optimizing memory allocation.

Total donated
Undistributed
Share with your subscribers: