Fix and re-enable @unknownbracket's handcoded NEON tex hash

This commit is contained in:
Henrik Rydgård 2013-11-11 17:12:09 +01:00
parent 3bc8adf426
commit 662ad32d4f

View file

@ -29,7 +29,7 @@ u32 QuickTexHashNEON(const void *checkp, u32 size) {
__builtin_prefetch(checkp, 0, 0);
if (((intptr_t)checkp & 0xf) == 0 && (size & 0x3f) == 0) {
#if 1
#if 0
uint32x4_t cursor = vdupq_n_u32(0);
uint32x4_t cursor2 = vld1q_u32((const u32 *)QuickTexHashInitial);
uint32x4_t update = vdupq_n_u32(0x24552455U);
@ -66,7 +66,7 @@ u32 QuickTexHashNEON(const void *checkp, u32 size) {
"movt r0, 0x4b73\n"
"movw r1, 0x9bd9\n"
"movt r1, 0xc00b\n"
"vmov d2, r0, r1\n"
"vmov d3, r0, r1\n"
// Initialize update.
"movw r0, 0x2455\n"