mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-09-01 17:23:42 +02:00
Bug in rtdsc
This commit is contained in:
parent
f9e87c0df0
commit
1bda8f00e0
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
rdtsc = """
|
rdtsc = """
|
||||||
#define uint64_t unsigned long
|
#define uint64_t unsigned long
|
||||||
//#ifdef __i386
|
#ifdef __i386
|
||||||
uint64_t irp_rdtsc_() {
|
uint64_t irp_rdtsc_() {
|
||||||
uint64_t x;
|
uint64_t x;
|
||||||
__asm__ volatile ("rdtsc" : "=A" (x));
|
__asm__ volatile ("rdtsc" : "=A" (x));
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
#if __amd64
|
#elif __amd64
|
||||||
uint64_t irp_rdtsc_() {
|
uint64_t irp_rdtsc_() {
|
||||||
uint64_t a, d;
|
uint64_t a, d;
|
||||||
__asm__ volatile ("rdtsc" : "=a" (a), "=d" (d));
|
__asm__ volatile ("rdtsc" : "=a" (a), "=d" (d));
|
||||||
|
Loading…
Reference in New Issue
Block a user