Go to the documentation of this file.
9 #if defined(__WATCOMC__)
10 void GetTSC(
unsigned long&);
11 #pragma aux GetTSC = 0x0f 0x31 "mov [edi], eax" parm [edi] modify [edx eax];
12 #elif defined(__GNUC__)
14 void GetTSC(
unsigned long& tsc)
16 asm volatile(
".byte 15, 49\n\t"
21 #elif defined(_MSC_VER)
23 void GetTSC(
unsigned long& tsc)
37 #define ripemd160_block_x86 ripemd160_block_asm_host_order
43 void main(
int argc,
char *argv[])
45 unsigned char buffer[64*256];
47 unsigned long s1,s2,e1,e2;
49 unsigned long data[2];
58 if (num > 250) num=16;
78 printf(
"ripemd160 (%d bytes) %d %d (%.2f)\n",num*64,
79 e1-s1,e2-s2,(
double)((e1-s1)-(e2-s2))/2);