forked from haiwan/sledge
parent
f45b450360
commit
5ccf8bbd87
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <global_request_scheduler.h>
|
||||
#include "global_request_scheduler.h"
|
||||
|
||||
void global_request_scheduler_deque_initialize();
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <global_request_scheduler.h>
|
||||
#include "global_request_scheduler.h"
|
||||
|
||||
void global_request_scheduler_minheap_initialize();
|
||||
|
@ -1,17 +1,17 @@
|
||||
#if defined(X86_64) || defined(x86_64)
|
||||
|
||||
#include <runtime.h>
|
||||
#include "runtime.h"
|
||||
|
||||
unsigned long long int
|
||||
__getcycles(void)
|
||||
{
|
||||
unsigned long long int cpu_time_in_cycles = 0;
|
||||
unsigned int cycles_lo;
|
||||
unsigned int cycles_hi;
|
||||
__asm__ volatile("rdtsc" : "=a"(cycles_lo), "=d"(cycles_hi));
|
||||
cpu_time_in_cycles = (unsigned long long int)cycles_hi << 32 | cycles_lo;
|
||||
unsigned long long int cpu_time_in_cycles = 0;
|
||||
unsigned int cycles_lo;
|
||||
unsigned int cycles_hi;
|
||||
__asm__ volatile("rdtsc" : "=a"(cycles_lo), "=d"(cycles_hi));
|
||||
cpu_time_in_cycles = (unsigned long long int)cycles_hi << 32 | cycles_lo;
|
||||
|
||||
return cpu_time_in_cycles;
|
||||
return cpu_time_in_cycles;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in new issue