summaryrefslogtreecommitdiff
path: root/jchuff.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-12-02 18:09:57 -0800
committerElliott Hughes <enh@google.com>2020-12-02 18:24:38 -0800
commit98e581f8227b9846b7adc92c0c63f5ed2384ff4b (patch)
tree26effec72dbace7671158aeddc9fde1e3e9cd1a9 /jchuff.c
parentff78ee5a324a7d37e0bfffd6152ea37056f29931 (diff)
parentd5148db386ceb4a608058320071cbed890bd6ad2 (diff)
Switch to chromium upstream.
Bug: https://issuetracker.google.com/135180511 Test: treehugger Change-Id: I0c78ec9b07debdb501a96df0d6cb2f9a24b5fc84
Diffstat (limited to 'jchuff.c')
-rw-r--r--jchuff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/jchuff.c b/jchuff.c
index 526203e..cb05055 100644
--- a/jchuff.c
+++ b/jchuff.c
@@ -43,8 +43,8 @@
*/
/* NOTE: Both GCC and Clang define __GNUC__ */
-#if defined __GNUC__ && (defined __arm__ || defined __aarch64__)
-#if !defined __thumb__ || defined __thumb2__
+#if defined(__GNUC__) && (defined(__arm__) || defined(__aarch64__))
+#if !defined(__thumb__) || defined(__thumb2__)
#define USE_CLZ_INTRINSIC
#endif
#endif
@@ -432,7 +432,7 @@ dump_buffer(working_state *state)
* scanning order-- 1, 8, 16, etc.), then this will produce an encoded block
* larger than 200 bytes.
*/
-#define BUFSIZE (DCTSIZE2 * 4)
+#define BUFSIZE (DCTSIZE2 * 8)
#define LOAD_BUFFER() { \
if (state->free_in_buffer < BUFSIZE) { \