Merge "Prevent benchmarks from being optimized away."

This commit is contained in:
Dan Albert 2014-09-25 22:52:53 +00:00 committed by Gerrit Code Review
commit 852d4fbbe9

View File

@ -20,8 +20,8 @@
#include <math.h>
// Avoid optimization.
double d;
double v;
volatile double d;
volatile double v;
static void BM_math_sqrt(int iters) {
StartBenchmarkTiming();