mattdesl

mattdesl/next-power-of-two

returns the next highest power of two

JavaScript
10
0
MIT License

next-power-of-two is a small utility library that returns the next highest power of two for a given positive number, or the number itself if it's already a power of two. It's designed for developers working with graphics, audio, or other domains where power-of-two values are commonly required, such as texture dimensions or buffer sizes.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

mattdesl's profile
mattdesl
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet