what's the easiest way to round up to power of 2?

BlitzMax Forums/BlitzMax Programming/what's the easiest way to round up to power of 2?

Its no function that you can access, its a function within one of the GL functions (I think the gltexsize calculation function)

But you can easily put it into your own files or into the function that actually needs this function :-)


PS: YES, BM has some strange features like functions within methods and functions ^^