public static int GetLeastSignificantBitIndex(long x) { return(BitUtils.FloorLog2((ulong)BitUtils.GetLeastSignificantBit(x))); }