Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint64_t inl_rdtscp(uint32_t *aux) {
- uint64_t time;
- asm volatile("rdtscp\n\t"
- "shl $32, %%rdx\n\t"
- "mov %%eax, %%edx\n\t"
- "mov %%ecx, %0\n\t"
- "mov %%rdx, %1\n\t"
- : "=m"(aux), "=m"(time)
- :
- : "eax", "edx", "ecx", "rdx");
- return time;
- }
Advertisement
Add Comment
Please, Sign In to add comment