mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Merge pull request #818 from Debian/s390x
Fix timestamp counter on s390/s390x
This commit is contained in:
commit
ea54669b6f
@ -193,7 +193,6 @@ uint64_t zmq::clock_t::rdtsc ()
|
||||
#elif defined(__s390__)
|
||||
uint64_t tsc;
|
||||
asm("\tstck\t%0\n" : "=Q" (tsc) : : "cc");
|
||||
tsc >>= 12; /* convert to microseconds just to be consistent */
|
||||
return(tsc);
|
||||
#else
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user