diff options
author | Kenneth Heafield <github@kheafield.com> | 2018-06-26 19:42:27 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2018-06-26 19:42:27 +0300 |
commit | 56696c631ebdf6aaa3e49c14bd614cc7aa1fe8fb (patch) | |
tree | 26dd8b2c40731d34b5cff1ae81b20e5ab0b3e6ef | |
parent | c972e40aef656dfea9e970ef9ca21b64bffb5c72 (diff) |
std::uint64_t vs uint64_t mess
-rw-r--r-- | stop_watch.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stop_watch.h b/stop_watch.h index c858be6..a07ebeb 100644 --- a/stop_watch.h +++ b/stop_watch.h @@ -7,7 +7,7 @@ namespace intgemm { uint64_t rdtsc_begin(uint32_t &processor) { - std::uint32_t lo, hi; + uint32_t lo, hi; __asm__ __volatile__ ( "cpuid\n\t" "rdtscp\n\t" @@ -17,11 +17,11 @@ uint64_t rdtsc_begin(uint32_t &processor) { : "=r" (lo), "=r" (hi), "=r" (processor) : /* no input */ : "rax", "rbx", "rcx", "rdx"); - return static_cast<std::uint64_t>(hi) << 32 | lo; + return static_cast<uint64_t>(hi) << 32 | lo; } -std::uint64_t rdtsc_end(uint32_t &processor) { - std::uint32_t lo, hi; +uint64_t rdtsc_end(uint32_t &processor) { + uint32_t lo, hi; __asm__ __volatile__ ( "rdtscp\n\t" "mov %%eax, %0\n\t" @@ -31,7 +31,7 @@ std::uint64_t rdtsc_end(uint32_t &processor) { : "=r" (lo), "=r" (hi), "=r" (processor) : /* no input */ : "rax", "rbx", "rcx", "rdx"); - return static_cast<std::uint64_t>(hi) << 32 | lo; + return static_cast<uint64_t>(hi) << 32 | lo; } class StopWatch { |