Public feed #1225442

GetHighestBit

public cpp v1 · immutable
Raw Edit
·published 2008-10-12 22:38 UTC
rendered paste body
int GetHighestBit(DWORD_PTR _dwValue){	int iRet = 0;	while (_dwValue)	{		iRet++;		_dwValue >>= 1;	}	return --iRet;}