(svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style

This commit is contained in:
skidd13
2007-11-20 14:11:19 +00:00
parent eeaa348f8b
commit a91c2a4c39
15 changed files with 29 additions and 34 deletions

View File

@@ -279,9 +279,9 @@ template<typename T> static inline T ClrBit(T& x, const uint8 y)
* @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));
}