mirror of
https://github.com/google/brotli.git
synced 2025-01-03 21:51:07 +00:00
Restrict the ARM optimizations to little endian architectures.
This commit is contained in:
parent
14c571ca0b
commit
bef6938af7
@ -30,9 +30,10 @@ extern "C" {
|
||||
#if (defined(__x86_64__) || defined(_M_X64))
|
||||
/* This should be set to 1 only on little-endian machines. */
|
||||
#define BROTLI_USE_64_BITS 1
|
||||
#elif (defined(__arm__))
|
||||
/* TODO: __arm__ is much too broad. The following flags should
|
||||
only be set on ARM architectures with little-endian byte order */
|
||||
#elif (defined(__arm__) && defined(__BYTE_ORDER__) \
|
||||
&& (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__))
|
||||
/* Enable some optimizations for ARM architectures with little endian byte
|
||||
order. So far the optimizations have been tested on a Cortex-A7. */
|
||||
#define ARMv7
|
||||
#define BROTLI_USE_64_BITS 1
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user