mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Get LIBC_MEM and LIBC_STDIO building with aarch64
This commit is contained in:
parent
ae0ee59614
commit
d04430f4ef
81 changed files with 440 additions and 1064 deletions
|
@ -10,6 +10,7 @@
|
|||
* @see libc/testlib/bench.h
|
||||
*/
|
||||
|
||||
#ifdef __x86__
|
||||
#define __startbench() \
|
||||
({ \
|
||||
uint64_t Ticks; \
|
||||
|
@ -25,7 +26,6 @@
|
|||
: "rcx", "rdx", "memory", "cc"); \
|
||||
Ticks; \
|
||||
})
|
||||
|
||||
#define __endbench() \
|
||||
({ \
|
||||
uint64_t Ticks; \
|
||||
|
@ -42,6 +42,10 @@
|
|||
: "rax", "rcx", "rdx", "memory", "cc"); \
|
||||
Ticks; \
|
||||
})
|
||||
#else
|
||||
#define __startbench() rdtsc()
|
||||
#define __endbench() rdtsc()
|
||||
#endif
|
||||
|
||||
#define __startbench_m() mfence_lfence_rdtsc_lfence()
|
||||
#define __endbench_m() __startbench_m()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue