mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
* Update zlibng * Set cmake path more directly in zlibng to hopefully fix an issue with the build on drone * I'm dumb, missing / in path * Mackal helps with a dumb gitignore issue * Adding all the files, not sure what's ignoring them and im tired of looking * Some tweaks to zlibng build to hopefully get it to build properly. works on msvc now
20 lines
361 B
C
20 lines
361 B
C
#ifndef CRC32_P_H_
|
|
#define CRC32_P_H_
|
|
|
|
#define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */
|
|
|
|
|
|
static inline uint32_t gf2_matrix_times(const uint32_t *mat, uint32_t vec) {
|
|
uint32_t sum = 0;
|
|
while (vec) {
|
|
if (vec & 1)
|
|
sum ^= *mat;
|
|
vec >>= 1;
|
|
mat++;
|
|
}
|
|
return sum;
|
|
}
|
|
|
|
|
|
#endif /* CRC32_P_H_ */
|