# HG changeset patch
# User Praveen Tiwari <[email protected]>
# Date 1541078260 -19800
# Thu Nov 01 18:47:40 2018 +0530
# Branch stable
# Node ID 26b4debfab1af7d5e080902b700d6124fafa8ebd
# Parent 471726d3a0462739ff8e3518eb1a1e8a01de4e8d
REPORT_SPEEDUP: correct the description
diff -r 471726d3a046 -r 26b4debfab1a source/test/testharness.h
--- a/source/test/testharness.h Wed Oct 31 16:35:48 2018 +0530
+++ b/source/test/testharness.h Thu Nov 01 18:47:40 2018 +0530
@@ -93,9 +93,9 @@
#define BENCH_RUNS 2000
-// Adapted from checkasm.c, runs each optimized primitive four times, measures
rdtsc
-// and discards invalid times. Repeats 1000 times to get a good average.
Then measures
-// the C reference with fewer runs and reports X factor and average cycles.
+/* Adapted from checkasm.c, runs each optimized primitive four times, measures
rdtsc
+ * and discards invalid times. Repeats BENCH_RUNS times to get a good average.
+ * Then measures the C reference with BENCH_RUNS / 4 runs and reports X factor
and average cycles.*/
#define REPORT_SPEEDUP(RUNOPT, RUNREF, ...) \
{ \
uint32_t cycles = 0; int runs = 0; \
# HG changeset patch
# User Praveen Tiwari <[email protected]>
# Date 1541078260 -19800
# Thu Nov 01 18:47:40 2018 +0530
# Branch stable
# Node ID 26b4debfab1af7d5e080902b700d6124fafa8ebd
# Parent 471726d3a0462739ff8e3518eb1a1e8a01de4e8d
REPORT_SPEEDUP: correct the description
diff -r 471726d3a046 -r 26b4debfab1a source/test/testharness.h
--- a/source/test/testharness.h Wed Oct 31 16:35:48 2018 +0530
+++ b/source/test/testharness.h Thu Nov 01 18:47:40 2018 +0530
@@ -93,9 +93,9 @@
#define BENCH_RUNS 2000
-// Adapted from checkasm.c, runs each optimized primitive four times, measures rdtsc
-// and discards invalid times. Repeats 1000 times to get a good average. Then measures
-// the C reference with fewer runs and reports X factor and average cycles.
+/* Adapted from checkasm.c, runs each optimized primitive four times, measures rdtsc
+ * and discards invalid times. Repeats BENCH_RUNS times to get a good average.
+ * Then measures the C reference with BENCH_RUNS / 4 runs and reports X factor and average cycles.*/
#define REPORT_SPEEDUP(RUNOPT, RUNREF, ...) \
{ \
uint32_t cycles = 0; int runs = 0; \
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel