Lines Matching +full:cpufreq +full:- +full:hw
4 * Copyright (c) 2016-2020, Arm Limited.
5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
35 #define ALIGN(x, y) (((x) + (y) - 1) & ~((y) - 1))
37 /* Reference implementation - do not modify! */
42 uint64_t sum = 0;/* Need 64-bit accumulator when nbytes > 64K */ in checksum_simple()
44 /* Sum all halfwords, assume misaligned accesses are handled in HW */ in checksum_simple()
45 for (uint32_t nhalfs = nbytes >> 1; nhalfs != 0; nhalfs--) in checksum_simple()
56 /* Fold 64-bit sum to 32 bits */ in checksum_simple()
61 /* Fold 32-bit sum to 16 bits */ in checksum_simple()
95 return -1; in find_impl()
136 uint64_t cpufreq) in benchmark() argument
146 const void *data = &base[random % (poolsize - blksize)]; in benchmark()
152 uint64_t elapsed_ns = end - start; in benchmark()
157 unsigned int cyc_per_blk = cpufreq / blks_per_s; in benchmark()
173 uint64_t CPUFREQ = 0; in main() local
179 while ((c = getopt(argc, argv, "b:df:i:n:p:")) != -1) in main()
199 int64_t cpufreq = atoll(optarg); in main() local
200 if (cpufreq < 1) in main()
203 cpufreq); in main()
206 CPUFREQ = cpufreq; in main()
239 char c = optarg[strlen(optarg) - 1]; in main()
257 "-b <blksize> Block size\n" in main()
258 "-d Dump first 96 bytes of data\n" in main()
259 "-f <cpufreq> CPU frequency (Hz)\n" in main()
260 "-i <impl> Implementation\n" in main()
261 "-n <numops> Number of operations\n" in main()
262 "-p <poolsize> Pool size (K or M suffix)\n" in main()
281 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
306 BLKSIZE, (uintmax_t) (CPUFREQ / 1000000)); in main()
335 uint8_t *p = base + POOLSIZE - (size + offset); in main()
349 if (CPUFREQ != 0) in main()
358 CPUFREQ = 1000000000; in main()
362 benchmark(base, POOLSIZE, BLKSIZE, NUMOPS, CPUFREQ); in main()
371 benchmark(base, POOLSIZE, sizes[i], numops, CPUFREQ); in main()