1. cadieu
  2. PPMZ2

Commits

Ian....@Idaho  committed 6a048d2

clean up some x64 items

  • Participants
  • Parent commits 18b500d
  • Branches default

Comments (0)

Files changed (1)

File ppmz2/IntMath.h

View file
 
 static unsigned int ilog2round(unsigned int val)
 {
-	/*
-#ifdef _MSC_VER
-	__asm
-	{
-		FILD val
-		FSTP val
-		mov eax,val
-		add eax,0x257D86 // (2 - sqrt(2))*(1<<22)
-		shr eax,23
-		sub eax,127
-	}
-#else
-	*/
-
 unsigned int L;
 	for(L=1; (1ul<<L) <= val; L++) ;
 	L --;
 	if ( val >= 92682 ) // sqrt(2) * 1<<16
 		L ++;
 return L;
-
-//#endif
 }
 
 static int intlog2r(unsigned long N) // rounded 
 static unsigned int ilog2floor(unsigned int val)
 {
 	return static_cast<unsigned int>(log(static_cast<double>(val)));
-
-	throw 5;
-		/*
-	__asm
-	{
-		FILD val
-		FSTP val
-		mov eax,val
-		shr eax,23
-		sub eax,127
-	}*/
 }
 
 static unsigned int ilog2x16(unsigned int val)