bench: Avoid deprecated use of volatile +=

This commit is contained in:
MarcoFalke 2022-02-17 17:35:34 +01:00
parent 03c8c6937e
commit 9999f891d1
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -13,7 +13,7 @@ static void Trig(benchmark::Bench& bench)
{
double d = 0.01;
bench.run([&] {
sum += sin(d);
sum = sum + sin(d);
d += 0.000001;
});
}