aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan E. Egge <unlord@xiph.org>2024-02-25 11:44:28 +0000
committerNathan E. Egge <unlord@xiph.org>2024-03-08 20:26:46 +0000
commit0fff614a4cc6d949fa66a324c342517c86e8029e (patch)
treea249ec5b129e2a8804ae7059941d69c766b9196f
parentb9f5333021578345bf11dac8b7c0b18955f6e3d1 (diff)
downloadlibdav1d-0fff614a4cc6d949fa66a324c342517c86e8029e.tar.gz
arm32/msac: Trim C functions, saves 1024 bytes
-rw-r--r--src/msac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/msac.c b/src/msac.c
index 58beee9..971ba85 100644
--- a/src/msac.c
+++ b/src/msac.c
@@ -73,7 +73,10 @@ int dav1d_msac_decode_subexp(MsacContext *const s, const int ref,
n - 1 - inv_recenter(n - 1 - ref, v);
}
-#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ARCH_AARCH64)
+#if !(HAVE_ASM && TRIM_DSP_FUNCTIONS && ( \
+ ARCH_AARCH64 || \
+ (ARCH_ARM && (defined(__ARM_NEON) || defined(__APPLE__) || defined(_WIN32))) \
+))
/* Takes updated dif and range values, renormalizes them so that
* 32768 <= rng < 65536 (reading more bytes from the stream into dif if
* necessary), and stores them back in the decoder context.