36 const uint value = uint(a);
37 const int shift = shift_amount;
39 if (shift < -31 || shift > 31) {
44 result = int(value << uint(shift));
47 result = int(value >> uint(-shift));
55 const uint value = uint(a);
56 int shift = shift_amount % 32;
65 result = int((value << uint(shift)) | (value >> uint(32 - shift)));
void bit_math_or(int a, int b, int &result)
void bit_math_xor(int a, int b, int &result)
void bit_math_and(int a, int b, int &result)
void bit_math_shift(int a, int shift_amount, int &result)
void bit_math_not(int a, int &result)
void bit_math_rotate(int a, int shift_amount, int &result)