ExpComputeCyclesPerYield

INT64 __stdcall ExpComputeCyclesPerYield(){
  __int64 v0; 
  unsigned __int64 v1; 
  unsigned __int64 v2; 
  unsigned __int16 v3; 
  unsigned __int64 v4; 
  __int16 v6; 
  _disable();
  v0 = 256i64;
  v1 = __rdtsc();
  do
  {
    _mm_pause();
    --v0;
  }
  while( v0 );
  v2 = __rdtsc();
  if( (v6 & 0x200) != 0 )
    _enable();
  v3 = -1;
  v4 = (v2 - v1) >> 8;
  if( v4 <= 0xFFFF )
  {
    v3 = v4;
    if( !v4 )
      return 1;
  }
  return v3;
}

Referenced by:

Phase1InitializationDiscard