File diff r10959:4b345c618e31 → r10960:e97ebf9cf99b
src/core/bitmath_func.cpp
Show inline comments
 
@@ -3,20 +3,20 @@
 
/** @file bitmath_func.cpp Functions related to bit mathematics. */
 

	
 
#include "../stdafx.h"
 
#include "bitmath_func.hpp"
 

	
 
const uint8 _ffb_64[64] = {
 
 0,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
 4,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
 5,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
 4,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
	0,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
	4,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
	5,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
	4,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
};
 

	
 
/**
 
 * Search the first set bit in a 32 bit variable.
 
 *
 
 * This algorithm is a static implementation of a log