summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/asm_arm.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/asm_arm.h')
-rw-r--r--apps/codecs/libtremor/asm_arm.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/apps/codecs/libtremor/asm_arm.h b/apps/codecs/libtremor/asm_arm.h
index 95f3bef0fc..ada0604a3a 100644
--- a/apps/codecs/libtremor/asm_arm.h
+++ b/apps/codecs/libtremor/asm_arm.h
@@ -43,50 +43,6 @@ static inline ogg_int32_t MULT31_SHIFT15(ogg_int32_t x, ogg_int32_t y) {
43 return(hi); 43 return(hi);
44} 44}
45 45
46#define XPROD32(a, b, t, v, x, y) \
47{ \
48 long l; \
49 asm( "smull %0, %1, %4, %6\n\t" \
50 "rsb %3, %4, #0\n\t" \
51 "smlal %0, %1, %5, %7\n\t" \
52 "smull %0, %2, %5, %6\n\t" \
53 "smlal %0, %2, %3, %7" \
54 : "=&r" (l), "=&r" (x), "=&r" (y), "=r" ((a)) \
55 : "3" ((a)), "r" ((b)), "r" ((t)), "r" ((v)) ); \
56}
57
58static inline void XPROD31(ogg_int32_t a, ogg_int32_t b,
59 ogg_int32_t t, ogg_int32_t v,
60 ogg_int32_t *x, ogg_int32_t *y)
61{
62 int x1, y1, l;
63 asm( "smull %0, %1, %4, %6\n\t"
64 "rsb %3, %4, #0\n\t"
65 "smlal %0, %1, %5, %7\n\t"
66 "smull %0, %2, %5, %6\n\t"
67 "smlal %0, %2, %3, %7"
68 : "=&r" (l), "=&r" (x1), "=&r" (y1), "=r" (a)
69 : "3" (a), "r" (b), "r" (t), "r" (v) );
70 *x = x1 << 1;
71 *y = y1 << 1;
72}
73
74static inline void XNPROD31(ogg_int32_t a, ogg_int32_t b,
75 ogg_int32_t t, ogg_int32_t v,
76 ogg_int32_t *x, ogg_int32_t *y)
77{
78 int x1, y1, l;
79 asm( "smull %0, %1, %3, %5\n\t"
80 "rsb %2, %4, #0\n\t"
81 "smlal %0, %1, %2, %6\n\t"
82 "smull %0, %2, %4, %5\n\t"
83 "smlal %0, %2, %3, %6"
84 : "=&r" (l), "=&r" (x1), "=&r" (y1)
85 : "r" (a), "r" (b), "r" (t), "r" (v) );
86 *x = x1 << 1;
87 *y = y1 << 1;
88}
89
90#ifndef _V_VECT_OPS 46#ifndef _V_VECT_OPS
91#define _V_VECT_OPS 47#define _V_VECT_OPS
92 48