MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FixRomSize

Function FixRomSize

src/unif.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73static uint32 mallocedsizes[32];
74
75static int FixRomSize(uint32 size, uint32 minimum) {
76 uint32 x = 1;
77
78 if (size < minimum)
79 return minimum;
80 while (x < size)
81 x <<= 1;
82 return x;
83}
84
85static void FreeUNIF(void) {
86 int x;

Callers 2

LoadPRGFunction · 0.85
LoadCHRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected