|
|
@ -95,8 +95,8 @@ aff_iterate(struct affinity *acb CK_CC_UNUSED)
|
|
|
|
CK_CC_INLINE static uint64_t
|
|
|
|
CK_CC_INLINE static uint64_t
|
|
|
|
rdtsc(void)
|
|
|
|
rdtsc(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint32_t eax = 0, edx;
|
|
|
|
|
|
|
|
#if defined(__x86_64__)
|
|
|
|
#if defined(__x86_64__)
|
|
|
|
|
|
|
|
uint32_t eax = 0, edx;
|
|
|
|
#if defined(CK_MD_RDTSCP)
|
|
|
|
#if defined(CK_MD_RDTSCP)
|
|
|
|
__asm__ __volatile__("rdtscp"
|
|
|
|
__asm__ __volatile__("rdtscp"
|
|
|
|
: "+a" (eax), "=d" (edx)
|
|
|
|
: "+a" (eax), "=d" (edx)
|
|
|
|