[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] (no subject)
From: |
Greg Chicares |
Subject: |
[lmi-commits] (no subject) |
Date: |
Sun, 19 Jun 2016 15:51:08 +0000 (UTC) |
branch: master
commit 8615fd02731835e396080e2ccfe66245a9174bca
Author: Gregory W. Chicares <address@hidden>
Date: Sun Jun 19 15:49:58 2016 +0000
Write to volatile, to prevent timing test optimization to NOP
---
currency_test.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/currency_test.cpp b/currency_test.cpp
index c22f4b6..ffaadde 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -186,6 +186,7 @@ void do_some_arithmetic(T t)
t -= u;
t = t - u;
u = t;
+ T volatile v(t);
}
void time_double()