Common: Maintain C++11 support in sign extend.

This commit is contained in:
Unknown W. Brackets committed 2021-01-31 08:44:02 -08:00
1 parent 1b00da2f3a
commit 5d60fa0d0d
23 files changed
+73 -60

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ u32 Evaluate(u32 a, IROp op) {
case IROp::Neg: return -(s32)a;
case IROp::BSwap16: return ((a & 0xFF00FF00) >> 8) | ((a & 0x00FF00FF) << 8);
case IROp::BSwap32: return swap32(a);
case IROp::Ext8to32: return SignExtend8To32(a);
case IROp::Ext16to32: return SignExtend16To32(a);
case IROp::Ext8to32: return SignExtend8ToU32(a);
case IROp::Ext16to32: return SignExtend16ToU32(a);
case IROp::ReverseBits: return ReverseBits32(a);
case IROp::Clz: {
int x = 31;