MCPcopy Create free account
hub / github.com/F-Stack/f-stack / crc64Test

Function crc64Test

app/redis-6.2.6/src/crc64.c:130–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129#define UNUSED(x) (void)(x)
130int crc64Test(int argc, char *argv[], int accurate) {
131 UNUSED(argc);
132 UNUSED(argv);
133 UNUSED(accurate);
134 crc64_init();
135 printf("[calcula]: e9c6d914c4b8d9ca == %016" PRIx64 "\n",
136 (uint64_t)_crc64(0, "123456789", 9));
137 printf("[64speed]: e9c6d914c4b8d9ca == %016" PRIx64 "\n",
138 (uint64_t)crc64(0, (unsigned char*)"123456789", 9));
139 char li[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "
140 "do eiusmod tempor incididunt ut labore et dolore magna "
141 "aliqua. Ut enim ad minim veniam, quis nostrud exercitation "
142 "ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis "
143 "aute irure dolor in reprehenderit in voluptate velit esse "
144 "cillum dolore eu fugiat nulla pariatur. Excepteur sint "
145 "occaecat cupidatat non proident, sunt in culpa qui officia "
146 "deserunt mollit anim id est laborum.";
147 printf("[calcula]: c7794709e69683b3 == %016" PRIx64 "\n",
148 (uint64_t)_crc64(0, li, sizeof(li)));
149 printf("[64speed]: c7794709e69683b3 == %016" PRIx64 "\n",
150 (uint64_t)crc64(0, (unsigned char*)li, sizeof(li)));
151 return 0;
152}
153
154#endif
155

Callers 1

mainFunction · 0.85

Calls 4

_crc64Function · 0.85
crc64Function · 0.85
crc64_initFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected