pcsx2/plugins
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
..
CDVDnull Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
CDVDpeops Introduce end-of-line normalization 2015-08-04 23:52:48 +02:00
FWnull Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
GSdx gsdx tc: use unsigned constant 2017-01-30 17:54:29 +01:00
GSdx_legacy windows: Don't use __declspec(dllexport) for plugin exports 2016-06-05 22:57:42 +01:00
GSnull Remove old/pointless code 2017-01-29 09:06:21 -05:00
LilyPad LilyPad: UI restructure 2017-01-26 19:46:37 +01:00
PadNull Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
PeopsSPU2 Introduce end-of-line normalization 2015-08-04 23:52:48 +02:00
SPU2null Remove old/pointless code 2017-01-29 09:06:21 -05:00
SSSPSXPAD windows: Remove user.props references from all projects 2016-05-29 12:21:52 +01:00
USBnull Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
USBqemu Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
cdvdGigaherz/src Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
dev9ghzdrk Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
dev9null Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
onepad Merge pull request #1770 from np511/gcc-cleanup 2017-01-30 15:28:33 +01:00
spu2-x gsdx|spu2x: fix %d/%u in printf (cppcheck) 2017-01-22 21:10:40 +01:00
xpad plugins: Tidy/standardise VS projects 2016-07-19 23:25:12 +01:00
zerogs Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
zerospu2 Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
zzogl-pg/opengl Remove warnings about ISO C++11 conformance 2017-01-29 09:06:10 -05:00
CMakeLists.txt plugins: Remove cdvdlinuz 2017-01-20 00:04:14 +00:00