Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TASEmulators/fceux
/ uppow2
Function
uppow2
src/utils/general.cpp:26–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
#include
"../types.h"
25
26
uint32 uppow2(uint32 n)
27
{
28
int x;
29
30
for(x=31;x>=0;x--)
31
if(n&(1u<<x))
32
{
33
if((1u<<x)!=n)
34
return(1u<<(x+1));
35
break;
36
}
37
return n;
38
}
39
Callers
2
NSFLoad
Function · 0.85
iNESLoad
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected