push %ebx
mov %edx,%edi
+ lfence
rdtsc /* read cyclecount into %edx:%eax */
lfence
addl %ecx,%eax /* fetch and timeout */
/*
* Here after spinning INNER_LOOP_COUNT times, check for timeout
*/
+ lfence
rdtsc /* cyclecount into %edx:%eax */
lfence
cmpl %ecx,%edx /* compare high-order 32-bits */