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

Function doesBlockExist

source/emulation/cpu/srcgen.cpp:8521–8538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8519}
8520
8521BOOL doesBlockExist(U32 crc, char* bytes, U32 byteLen) {
8522 U32 i;
8523
8524 for (i=0;i<compiledBlockCount;i++) {
8525 if (compiledBlocks[i].crc==crc) {
8526 while (compiledBlocks[i].crc==crc) {
8527 if (compiledBlocks[i].byteLen == byteLen && !memcmp(bytes, compiledBlocks[i].bytes, byteLen)) {
8528 return 1;
8529 }
8530 i++;
8531 }
8532 break;
8533 }
8534 if (compiledBlocks[i].crc>crc)
8535 break;
8536 }
8537 return 0;
8538}
8539
8540static struct GenData d;
8541

Callers 1

generateSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected