| 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 | { |
no outgoing calls
no test coverage detected