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 279638a commit 9e5c856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/unix/vm/sqUnixHeartbeat.c
Expand Up @@ -172,9 +172,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 9e5c856

Please sign in to comment.