Anonymous avatar Anonymous committed 6a048d2

clean up some x64 items

Comments (0)

Files changed (1)

 
 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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.