New Project Window

This commit is contained in:
dexyfex
2018-03-04 00:03:08 +11:00
Unverified
parent 0c558e746c
commit c093aa4736
136 changed files with 29501 additions and 20 deletions
+24
View File
@@ -194,4 +194,28 @@ namespace CodeWalker
public static class BitUtil
{
public static bool IsBitSet(uint value, int bit)
{
return (((value >> bit) & 1) > 0);
}
public static uint SetBit(uint value, int bit)
{
return (value | (1u << bit));
}
public static uint ClearBit(uint value, int bit)
{
return (value & (~(1u << bit)));
}
public static uint UpdateBit(uint value, int bit, bool flag)
{
if (flag) return SetBit(value, bit);
else return ClearBit(value, bit);
}
}
}