MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / gf2_matrix_times

Function gf2_matrix_times

extlibs/minizip/src/crc32.c:365–381  ·  view source on GitHub ↗

========================================================================= */

(mat, vec)

Source from the content-addressed store, hash-verified

363
364/* ========================================================================= */
365local unsigned long gf2_matrix_times(mat, vec)
366unsigned long* mat;
367
368unsigned long vec;
369{
370 unsigned long sum;
371
372 sum = 0;
373 while (vec)
374 {
375 if (vec & 1)
376 sum ^= *mat;
377 vec >>= 1;
378 mat++;
379 }
380 return sum;
381}
382
383/* ========================================================================= */
384local void gf2_matrix_square(square, mat)

Callers 2

gf2_matrix_squareFunction · 0.85
crc32_combine_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected