blob: a16a011c9699437ab2ce753e25920f899731f474 [file] [edit]
#include "crc_macros.h"
#include <stdint.h>
#define GENPOLY -24575
static NOINLINE uint16_t crc_loop(uint16_t crc_initval, uint32_t data) {
uint16_t crc = crc_initval;
// This loop will be optimized by HashRecognize.
CRCLOOP_LE(uint16_t, GENPOLY, crc, data);
return crc;
}
int main() {
PRINT_RESULTS(crc_loop);
return 0;
}