Guest User

Untitled

a guest
Jul 26th, 2022
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. uint64_t inl_rdtscp(uint32_t *aux) {
  2. uint64_t time;
  3. asm volatile("rdtscp\n\t"
  4. "shl $32, %%rdx\n\t"
  5. "mov %%eax, %%edx\n\t"
  6. "mov %%ecx, %0\n\t"
  7. "mov %%rdx, %1\n\t"
  8. : "=m"(aux), "=m"(time)
  9. :
  10. : "eax", "edx", "ecx", "rdx");
  11.  
  12. return time;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment