MCPcopy Create free account
hub / github.com/RsyncProject/rsync / driver1

Function driver1

popt/lookup3.c:775–789  ·  view source on GitHub ↗

used for timings */

Source from the content-addressed store, hash-verified

773
774/* used for timings */
775static void driver1(void)
776{
777 uint8_t buf[256];
778 uint32_t i;
779 uint32_t h=0;
780 time_t a,z;
781
782 time(&a);
783 for (i=0; i<256; ++i) buf[i] = 'x';
784 for (i=0; i<1; ++i) {
785 h = jlu32l(h, &buf[0], sizeof(buf[0]));
786 }
787 time(&z);
788 if (z-a > 0) printf("time %d %.8x\n", (int)(z-a), h);
789}
790
791/* check that every input bit changes every output bit half the time */
792#define HASHSTATE 1

Callers 1

mainFunction · 0.85

Calls 1

jlu32lFunction · 0.85

Tested by

no test coverage detected