aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-01-13 23:48:13 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-01-13 23:48:13 +0000
commite1467deb684e76d623e4d17b8aba1f75e1bc5f5e (patch)
treeb8c7baaadac4978cd36aafe62e5d051bcb989452
parentcf5cb978c0b061bab479f52451f798d77107b27a (diff)
parent57e97210c850acfd3f1e4ad858e56fab00a4b226 (diff)
downloadtremolo-android11-mainline-extservices-release.tar.gz
Snap for 7080740 from 57e97210c850acfd3f1e4ad858e56fab00a4b226 to mainline-extservices-releaseandroid-mainline-11.0.0_r23android-mainline-11.0.0_r15android11-mainline-extservices-release
Change-Id: I6bb4dfbfe100429468185233f5bd4af69e3d3219
-rw-r--r--Tremolo/mdct.c5
-rw-r--r--Tremolo/misc.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/Tremolo/mdct.c b/Tremolo/mdct.c
index 32b3525..1e4f44c 100644
--- a/Tremolo/mdct.c
+++ b/Tremolo/mdct.c
@@ -100,6 +100,7 @@ STIN void presymmetry(DATA_TYPE *in,int n2,int step){
}while(aX>=bX);
}
+__attribute__((no_sanitize("signed-integer-overflow")))
/* 8 point butterfly (in place) */
STIN void mdct_butterfly_8(DATA_TYPE *x){
@@ -123,6 +124,7 @@ STIN void mdct_butterfly_8(DATA_TYPE *x){
MB();
}
+__attribute__((no_sanitize("signed-integer-overflow")))
/* 16 point butterfly (in place, 4 register) */
STIN void mdct_butterfly_16(DATA_TYPE *x){
@@ -150,6 +152,7 @@ STIN void mdct_butterfly_16(DATA_TYPE *x){
mdct_butterfly_8(x+8);
}
+__attribute__((no_sanitize("signed-integer-overflow")))
/* 32 point butterfly (in place, 4 register) */
STIN void mdct_butterfly_32(DATA_TYPE *x){
@@ -271,6 +274,7 @@ STIN void mdct_bitreverse(DATA_TYPE *x,int n,int shift){
}while(w>x);
}
+__attribute__((no_sanitize("signed-integer-overflow")))
STIN void mdct_step7(DATA_TYPE *x,int n,int step){
DATA_TYPE *w0 = x;
DATA_TYPE *w1 = x+(n>>1);
@@ -317,6 +321,7 @@ STIN void mdct_step7(DATA_TYPE *x,int n,int step){
}
#endif
+__attribute__((no_sanitize("signed-integer-overflow")))
STIN void mdct_step8(DATA_TYPE *x, int n, int step){
LOOKUP_T *T;
LOOKUP_T *V;
diff --git a/Tremolo/misc.h b/Tremolo/misc.h
index b75a6d8..903d16a 100644
--- a/Tremolo/misc.h
+++ b/Tremolo/misc.h
@@ -166,6 +166,7 @@ static inline ogg_int32_t MULT31_SHIFT15(ogg_int32_t x, ogg_int32_t y) {
#else
+__attribute__((no_sanitize("signed-integer-overflow")))
static inline void XPROD32(ogg_int32_t a, ogg_int32_t b,
ogg_int32_t t, ogg_int32_t v,
ogg_int32_t *x, ogg_int32_t *y)
@@ -174,6 +175,7 @@ static inline void XPROD32(ogg_int32_t a, ogg_int32_t b,
*y = MULT32(b, t) - MULT32(a, v);
}
+__attribute__((no_sanitize("signed-integer-overflow")))
static inline void XPROD31(ogg_int32_t a, ogg_int32_t b,
ogg_int32_t t, ogg_int32_t v,
ogg_int32_t *x, ogg_int32_t *y)
@@ -182,6 +184,7 @@ static inline void XPROD31(ogg_int32_t a, ogg_int32_t b,
*y = MULT31(b, t) - MULT31(a, v);
}
+__attribute__((no_sanitize("signed-integer-overflow")))
static inline void XNPROD31(ogg_int32_t a, ogg_int32_t b,
ogg_int32_t t, ogg_int32_t v,
ogg_int32_t *x, ogg_int32_t *y)