Files
pcsx2/plugins/GSdx
Gregory Hainaut cf71049bd4 gsdx tc: use unsigned constant
Help the compiler to generate better code

C code:
uint32 addr = (i >> 3u) % MAX_BLOCKS;
uint32 row = addr >> 5u;
uint32 col = 1 << (addr & 31u);

ASM Before
     f48:	mov    eax,esi
     f4a:	mov    ecx,esi
     f4c:	mov    edx,DWORD PTR [ebp+0x8]
     f4f:	sar    eax,0x1f
     f52:	sar    ecx,0x3
     f55:	shr    eax,0x12
     f58:	add    ecx,eax
     f5a:	and    ecx,0x3fff
     f60:	sub    ecx,eax
     f62:	mov    eax,0x1
     f67:	shl    eax,cl
     f69:	shr    ecx,0x5
     f6c:	lea    edx,[edx+ecx*4]

ASM After
     f48:	mov    ecx,edi
     f4a:	mov    eax,0x1
     f4f:	sar    ecx,0x3
     f52:	shl    eax,cl
     f54:	shr    ecx,0x3
     f57:	and    ecx,0x7fc
     f5d:	add    ecx,DWORD PTR [ebp+0x8]
2017-01-30 17:54:29 +01:00
..
…
2016-11-20 13:21:11 +01:00
2017-01-27 11:00:23 +01:00
2017-01-30 17:54:29 +01:00
2017-01-13 23:52:02 +00:00
2017-01-15 20:07:10 +01:00
2017-01-15 20:07:10 +01:00
2017-01-26 17:12:13 +01:00
2016-01-18 23:59:27 +01:00
2016-01-18 23:59:27 +01:00
2016-09-03 00:10:23 +02:00
…
2017-01-27 11:00:23 +01:00
2016-11-05 22:19:32 +05:30
2017-01-26 17:12:13 +01:00
2016-05-21 13:34:18 +01:00
2016-12-08 01:18:17 +00:00
2017-01-15 20:07:10 +01:00
2017-01-10 20:47:33 +00:00
2017-01-26 17:12:13 +01:00
…
2016-01-27 22:41:45 +00:00
2016-01-27 22:41:45 +00:00
2016-01-27 22:41:45 +00:00
2017-01-30 17:54:21 +01:00