rips.cpp revision 7c478bd95313f5f23a4c958a745db2134aa03244
//
// gettsc.inl
//
// gives access to the Pentium's (secret) cycle counter
//
// This software was written by Leonard Janke (janke@unixg.ubc.ca)
// in 1996-7 and is entered, by him, into the public domain.
#if defined(__WATCOMC__)
void GetTSC(unsigned long&);
inline
{
asm volatile(".byte 15, 49\n\t"
: "=eax" (tsc)
:
: "%edx", "%eax");
}
inline
{
unsigned long a;
tsc=a;
}
#endif
#include <stdio.h>
#include <stdlib.h>
extern "C" {
}
{
unsigned char k[16];
unsigned long data[2];
unsigned char iv[8];
int j=0;
if (argc >= 2)
#if 0
num*=64;
numm*=64;
#endif
for (j=0; j<6; j++)
{
for (i=0; i<10; i++) /**/
{
}
}
}