Lines Matching defs:base
132 benchmark(const uint8_t *base,
144 uint32_t random = ((uint32_t *) base)[i % (poolsize / 4)];
146 const void *data = &base[random % (poolsize - blksize)];
280 uint8_t *base = mmap(0, POOLSIZE, PROT_READ|PROT_WRITE,
282 if (base == MAP_FAILED)
288 ((uint32_t *) base)[i] = rand();
318 printf(" %02x", base[i]);
333 success &= verify(&base[offset], offset, size);
335 uint8_t *p = base + POOLSIZE - (size + offset);
342 success &= verify(base, 0, size);
345 success &= verify(base, 0, POOLSIZE);
362 benchmark(base, POOLSIZE, BLKSIZE, NUMOPS, CPUFREQ);
371 benchmark(base, POOLSIZE, sizes[i], numops, CPUFREQ);
375 if (munmap(base, POOLSIZE) != 0)