Skip to content

Commit

Permalink
SunPRO change
Browse files Browse the repository at this point in the history
  • Loading branch information
cstes committed Apr 29, 2020
1 parent 9e5c856 commit f317a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/unix/vm/sqUnixITimerHeartbeat.c
Expand Up @@ -161,9 +161,9 @@ ioHighResClock(void)
/* return the value of the high performance counter */
sqLong value = 0;

#if defined(__GNUC__) && (defined(i386) || defined(__i386) || defined(__i386__))
#if (defined(__GNUC__) || defined(__SUNPRO_C)) && (defined(i386) || defined(__i386) || defined(__i386__))
__asm__ __volatile__ ("rdtsc" : "=A"(value));
#elif defined(__GNUC__) && (defined(x86_64) || defined(__x86_64) || defined (__x86_64__))
#elif (defined(__GNUC__) || defined(__SUNPRO_C)) && (defined(x86_64) || defined(__x86_64) || defined (__x86_64__))
__asm__ __volatile__ ("rdtsc\n\t" // Returns the time in EDX:EAX.
"shl $32, %%rdx\n\t" // Shift the upper bits left.
"or %%rdx, %0" // 'Or' in the lower bits.
Expand Down

0 comments on commit f317a84

Please sign in to comment.