Skip to content

Commit 4b0f27b

Browse files
eustascopybara-github
authored andcommitted
pick changes from Alpine patch
PiperOrigin-RevId: 816164347
1 parent 1e4425a commit 4b0f27b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

c/common/platform.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,19 @@ To apply compiler hint, enclose the branching condition into macros, like this:
203203
#define BROTLI_TARGET_LOONGARCH64
204204
#endif
205205

206+
/* This does not seem to be an indicator of z/Architecture (64-bit); neither
207+
that allows to use unaligned loads. */
208+
#if defined(__s390x__)
209+
#define BROTLI_TARGET_S390X
210+
#endif
211+
212+
#if defined(__mips64)
213+
#define BROTLI_TARGET_MIPS64
214+
#endif
215+
206216
#if defined(BROTLI_TARGET_X64) || defined(BROTLI_TARGET_ARMV8_64) || \
207217
defined(BROTLI_TARGET_POWERPC64) || defined(BROTLI_TARGET_RISCV64) || \
208-
defined(BROTLI_TARGET_LOONGARCH64)
218+
defined(BROTLI_TARGET_LOONGARCH64) || defined(BROTLI_TARGET_MIPS64)
209219
#define BROTLI_TARGET_64_BITS 1
210220
#else
211221
#define BROTLI_TARGET_64_BITS 0

0 commit comments

Comments
 (0)