MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xUtil_crc_update

Function xUtil_crc_update

src/SB/Core/x/xutil.cpp:127–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127U32 xUtil_crc_update(U32 crc_accum, char* data, S32 datasize)
128{
129 S32 i, j;
130
131 if (g_crc_needinit)
132 {
133 xUtil_crc_init();
134 }
135
136 for (i = 0; i < datasize; i++)
137 {
138 j = ((crc_accum >> 24) ^ *data++) & 0xff;
139 crc_accum = (crc_accum << 8) ^ g_crc32_table[j];
140 }
141
142 return crc_accum;
143}
144
145S32 xUtil_yesno(F32 wt_yes)
146{

Callers 2

xSG_sv_bldchksumFunction · 0.70
xSG_ld_validateFunction · 0.70

Calls 1

xUtil_crc_initFunction · 0.70

Tested by

no test coverage detected