Use ARM unaligned accesses ifdefs for SPARC as well.

This commit is contained in:
Salvatore Sanfilippo
2017-02-23 22:39:44 +08:00
parent d7826823c0
commit b3391fd853
3 changed files with 11 additions and 2 deletions

View File

@ -665,7 +665,7 @@ void bitopCommand(client *c) {
* result in GCC compiling the code using multiple-words load/store
* operations that are not supported even in ARM >= v6. */
j = 0;
#ifndef __arm__
#ifndef USE_ALIGNED_ACCESS
if (minlen >= sizeof(unsigned long)*4 && numkeys <= 16) {
unsigned long *lp[16];
unsigned long *lres = (unsigned long*) res;