Commit 429cf462 authored by Ulf Möller's avatar Ulf Möller
Browse files

old MSVC versions don't have rdtsc

use _emit instead

Pointed out by Jeremy Cooper <jeremy@baymoo.org>
parent c62b26fd
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -582,7 +582,8 @@ static void readtimer(void)
	if (have_tsc) {
	if (have_tsc) {
	  __try {
	  __try {
	    __asm {
	    __asm {
	      rdtsc
	      _emit 0x0f
	      _emix 0x31
	      mov cyclecount, eax
	      mov cyclecount, eax
	      }
	      }
	    RAND_add(&cyclecount, sizeof(cyclecount), 1);
	    RAND_add(&cyclecount, sizeof(cyclecount), 1);