File diff r7931:4c17a74c399e → r7932:6b853bdb39ea
src/macros.h
Show inline comments
 
@@ -276,15 +276,15 @@ template<typename T> static inline T Clr
 
 * to toggle and starts at the LSB with 0.
 
 *
 
 * @param x The varliable to toggle the bit
 
 * @param y The bit position to toggle
 
 * @return The new value of the old value with the bit toggled
 
 */
 
template<typename T> static inline T TOGGLEBIT(T& x, const uint8 y)
 
template<typename T> static inline T ToggleBit(T& x, const uint8 y)
 
{
 
	return x ^= (T)1U << y;
 
	return x = (T)(x ^ (T)(1U << y));
 
}
 

	
 

	
 
/* checking more bits. Maybe unneccessary, but easy to use */
 
/**
 
 * Check several bits in a value.