diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-25 14:08:07 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-25 14:28:44 +0000 |
commit | 0480f13c021148cde25d2152b503d696130f7163 (patch) | |
tree | 7d689291a2d81557ea2e55da6db65abb04a866c0 /source | |
parent | 57e627d1665b738570aa0d5faa8d39eb609ff22a (diff) | |
download | mupdf-0480f13c021148cde25d2152b503d696130f7163.tar.xz |
Rename ARCH_ARM_CAN_LOAD_UNALIGNED to be ARCH_UNALIGNED_OK
Now covers non-ARM arch's too, and both load/stores.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/draw-scale-simple.c | 2 | ||||
-rw-r--r-- | source/fitz/halftone.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-scale-simple.c b/source/fitz/draw-scale-simple.c index a5cb43dd..cf9251e7 100644 --- a/source/fitz/draw-scale-simple.c +++ b/source/fitz/draw-scale-simple.c @@ -796,7 +796,7 @@ scale_row_from_temp(unsigned char *dst, unsigned char *src, fz_weights *weights, "ldr r14,[r2, r4, LSL #2]! @ r2 = contrib = index[index[row]+1]\n" " @ r14= len = *contrib \n" "blt 4f @ while (x >= 0) { \n" -#ifndef ARCH_ARM_CAN_LOAD_UNALIGNED +#ifndef ARCH_UNALIGNED_OK "tst r3, #3 @ if ((r3 & 3) \n" "tsteq r1, #3 @ || (r1 & 3)) \n" "bne 4f @ can't do fast code \n" diff --git a/source/fitz/halftone.c b/source/fitz/halftone.c index 186c0aa6..707084c4 100644 --- a/source/fitz/halftone.c +++ b/source/fitz/halftone.c @@ -344,7 +344,7 @@ static void do_threshold_4(const unsigned char * restrict ht_line, const unsigned char * restrict pixmap, unsigned char *restrict out, int w, int ht_len) __attribute__((naked)); -#ifdef ARCH_ARM_CAN_LOAD_UNALIGNED +#ifdef ARCH_UNALIGNED_OK static void do_threshold_4(const unsigned char * restrict ht_line, const unsigned char * restrict pixmap, unsigned char *restrict out, int w, int ht_len) { |