MCPcopy Index your code
hub / github.com/benfry/processing4 / nextPowerOfTwo

Method nextPowerOfTwo

core/src/processing/opengl/PGL.java:1633–1639  ·  view source on GitHub ↗
(int val)

Source from the content-addressed store, hash-verified

1631
1632 // bit shifting this might be more efficient
1633 protected static int nextPowerOfTwo(int val) {
1634 int ret = 1;
1635 while (ret < val) {
1636 ret <<= 1;
1637 }
1638 return ret;
1639 }
1640
1641
1642 /**

Callers 4

setSizeMethod · 0.95
createFBOLayerMethod · 0.95
restoreFirstFrameMethod · 0.95
initTextureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected