Skip to content
Snippets Groups Projects
Commit def0cdf4 authored by Vijay Pai's avatar Vijay Pai Committed by GitHub
Browse files

Merge pull request #11638 from vjpai/uint64

Properly use uint64_t not unsigned int64_t
parents 883655d6 b9078c8e
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ static void gpr_get_cycle_counter(int64_t int *clk) {
// ----------------------------------------------------------------
#elif defined(__x86_64__) || defined(__amd64__)
static void gpr_get_cycle_counter(int64_t *clk) {
unsigned int64_t low, high;
uint64_t low, high;
__asm__ volatile("rdtsc" : "=a"(low), "=d"(high));
*clk = (int64_t)(high << 32) | (int64_t)low;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment