我使用eclipse编译器运行没有问题,但使用Android studio编译器会出现访问对齐错误
#define Te1 (u32)((u64*)((u8*)Te+3))
static const u64 Te[256] = {
U64(0xa56363c6a56363c6), U64(0x847c7cf8847c7cf8),
U64(0x997777ee997777ee), U64(0x8d7b7bf68d7b7bf6),
U64(0x0df2f2ff0df2f2ff), U64(0xbd6b6bd6bd6b6bd6),
............};
u32 index = s1 >> 8 & 0xff; // 75
Te1[index]; // SIGBUS (SIGBUS: illegal alignment)