Minor cleanup to tex hash and clut check.
Add a secondary texture cache again.

This time, only used when invalidations happen several times, but not
too often, and still hashes the entire texture.
Use SSE2 in the texture hashing function.

Speeds it up significantly, but only when it's called a lot.
Replace some hleEatCycles() with actual PSP timing.

Measured several runs at 8 per run with test overhead check.
Correct delay for sceKernelDelayThread(0).

It's not 200 for 0, more like 100ish.
Add more accurate cycles in sceRtc and sceDisplay.
Eat some cycles in sceGeListUpdateStallAddr().

Another common function.  Per real PSP timing.
Check for low GPU memory and try to disable cache.

This may help with phones and even desktops without much VRAM/RAM.
Normally OpenGL will copy between them, though, so it should not happen
often, especially not on desktops.
Merge pull request #1670 from PeterTh/master

Bicubic texture upsampling
Merge pull request #1675 from unknownbrackets/perf

Adjust some cycle eating and add to a couple funcs
Merge pull request #1676 from unknownbrackets/texcache

Add back second texcache, improve perf, add memory check
Add bicubic/Hybrid bicubic to Android/iOS
Merge pull request #1677 from raven02/master

Add bicubic/Hybrid bicubic to Android/iOS
Buildfix for BHarmattan and Blackberry. Was missing math.h
Fixed bicubic scaling, added SSE 4.1 version