Skip to content
#
asm
1 article tagged
#asm
.
All tags
→
Feb 22, 2013
Next power of two
While looking to write a pure ooc version of ftgl, I was reading the source of ftgl-gl3 and I stumbled upon this piece of code: static inline GLuint NextPowerOf2(GLuint in) {. in -= 1; in |= in >>…
13 min