ARM: Add CPU detection.

This commit is contained in:
Mike Pall
2011-05-26 17:58:29 +02:00
parent 185554b682
commit ae3179926a
3 changed files with 34 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ static LJ_AINLINE uint32_t lj_bswap(uint32_t x)
{
uint32_t r;
#if __ARM_ARCH_6__ || __ARM_ARCH_6J__ || __ARM_ARCH_6T2__ || __ARM_ARCH_6Z__ ||\
__ARM_ARCH_7__ || __ARM_ARCH_7A__ || __ARM_ARCH_7R__
__ARM_ARCH_6ZK__ || __ARM_ARCH_7__ || __ARM_ARCH_7A__ || __ARM_ARCH_7R__
__asm__("rev %0, %1" : "=r" (r) : "r" (x));
return r;
#else