MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / addBlock

Function addBlock

source/emulation/cpu/srcgen.cpp:8507–8519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8505U32 compiledBlockCount;
8506
8507void addBlock(char* func, U32 crc, char* bytes, U32 byteLen) {
8508 int i = compiledBlockCount;
8509
8510 while (i>0 && crc<compiledBlocks[i-1].crc) {
8511 compiledBlocks[i] = compiledBlocks[i-1];
8512 i--;
8513 }
8514 compiledBlocks[i].crc = crc;
8515 compiledBlocks[i].bytes = bytes;
8516 compiledBlocks[i].byteLen = byteLen;
8517 strcpy(compiledBlocks[i].func, func);
8518 compiledBlockCount++;
8519}
8520
8521BOOL doesBlockExist(U32 crc, char* bytes, U32 byteLen) {
8522 U32 i;

Callers 1

generateSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected