Skip to content

Commit

Permalink
fix warning on using TimeStampCounter uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed May 17, 2022
1 parent f4bb770 commit 985d6db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/matrix/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ template <typename T> void unused(T &&x) { asm("" ::"m"(x)); }
template <size_t N, typename F> Vc_ALWAYS_INLINE void benchmark(F &&f)
{
TimeStampCounter tsc;
auto cycles = tsc.cycles();
cycles = 0x7fffffff;
decltype(tsc.cycles()) cycles = 0x7fffffff;
for (int i = 0; i < 100; ++i) {
tsc.start();
for (int j = 0; j < 10; ++j) {
Expand Down

0 comments on commit 985d6db

Please sign in to comment.