Lines Matching full:double
94 static double timeval2double(struct timeval *ts) in timeval2double()
96 return (double)ts->tv_sec + (double)ts->tv_usec / (double)USEC_PER_SEC; in timeval2double()
113 double (*do_gettimeofday)(const struct function *r, size_t size, void *src, void *dst);
118 static void __bench_mem_function(struct bench_mem_info *info, int r_idx, size_t size, double size_t… in __bench_mem_function()
121 double result_bps = 0.0; in __bench_mem_function()
148 printf(" %14lf cycles/byte\n", (double)result_cycles/size_total); in __bench_mem_function()
156 printf("%lf\n", (double)result_cycles/size_total); in __bench_mem_function()
180 double size_total; in bench_mem_common()
193 size_total = (double)size * nr_loops; in bench_mem_common()
254 static double do_memcpy_gettimeofday(const struct function *r, size_t size, void *src, void *dst) in do_memcpy_gettimeofday()
269 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memcpy_gettimeofday()
324 static double do_memset_gettimeofday(const struct function *r, size_t size, void *src __maybe_unuse… in do_memset_gettimeofday()
343 return (double)(((double)size * nr_loops) / timeval2double(&tv_diff)); in do_memset_gettimeofday()