MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SBITS

Function SBITS

pcsx2/IPU/IPU_MultiISA.cpp:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86__ri static s32 SBITS(uint bits)
87{
88 // Read an unaligned 32 bit value and then shift the bits up and then back down.
89
90 uint readpos8 = g_BP.BP/8;
91
92 int result = BigEndian(*(s32*)( (s8*)g_BP.internal_qwc + readpos8 ));
93 uint bp7 = (g_BP.BP & 7);
94 result <<= bp7;
95 result >>= (32 - bits);
96
97 return result;
98}
99
100__fi static int GETWORD()
101{

Callers 3

get_intra_blockFunction · 0.85
get_non_intra_blockFunction · 0.85
ipuVDECFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected