diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-06-17 16:01:20 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-06-17 16:01:20 +0000 |
commit | b6c17c2c82602723a033298fafbc37b9462a9f34 (patch) | |
tree | 2949861d94fe4e34405851921c4744355fe7c689 /apps/codecs/libtremor/asm_arm.h | |
parent | 10719ef6490df6998ca62f768a8ba9b1f1c6d616 (diff) | |
download | rockbox-b6c17c2c82602723a033298fafbc37b9462a9f34.tar.gz rockbox-b6c17c2c82602723a033298fafbc37b9462a9f34.zip |
Delete some duplicate inline asm macros since they now live in the codeclib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtremor/asm_arm.h')
-rw-r--r-- | apps/codecs/libtremor/asm_arm.h | 44 |
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 | |||
58 | static 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 | |||
74 | static 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 | ||