summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNedeljko Babic <nbabic@mips.com>2012-02-24 17:19:29 +0100
committerNedeljko Babic <nbabic@mips.com>2012-02-24 17:19:29 +0100
commit546899e66dbe4b08d0472b414193cda619087b5d (patch)
treecbc0896dbf8876fb96aa236f5065032349ef911c
parent3175ff964c7d85d070df823189997f6b753cfef7 (diff)
downloadtremor-546899e66dbe4b08d0472b414193cda619087b5d.tar.gz
Comments from Android code added for clarification
-rw-r--r--asm_arm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/asm_arm.h b/asm_arm.h
index 7b71397..ed4225f 100644
--- a/asm_arm.h
+++ b/asm_arm.h
@@ -64,6 +64,7 @@ static inline void XPROD32(ogg_int32_t a, ogg_int32_t b,
*y = y1;
}
+/* x = (a*t + b*v)>>31, y = (b*t - a*v)>>31 */
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)
@@ -82,6 +83,7 @@ static inline void XPROD31(ogg_int32_t a, ogg_int32_t b,
*y = y1 << 1;
}
+/* x = (a*t - b*v)>>31, y = (b*t + a*v)>>31 */
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)