mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 00:31:13 +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__)
|
#elif defined(__s390__)
|
||||||
uint64_t tsc;
|
uint64_t tsc;
|
||||||
asm("\tstck\t%0\n" : "=Q" (tsc) : : "cc");
|
asm("\tstck\t%0\n" : "=Q" (tsc) : : "cc");
|
||||||
tsc >>= 12; /* convert to microseconds just to be consistent */
|
|
||||||
return(tsc);
|
return(tsc);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user