Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RenderKit/embree
/ isPowerOf2
Function
isPowerOf2
tutorials/common/scenegraph/texture.cpp:8–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
namespace embree
7
{
8
bool isPowerOf2 (unsigned int x)
9
{
10
while (((x % 2) == 0) && x > 1)
11
x /= 2;
12
return (x == 1);
13
}
14
15
static std::map<std::string,std::shared_ptr<Texture>> texture_cache;
16
Callers
1
Texture
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected