summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/asm_mcf5249.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/lib/asm_mcf5249.h')
-rw-r--r--apps/codecs/lib/asm_mcf5249.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/codecs/lib/asm_mcf5249.h b/apps/codecs/lib/asm_mcf5249.h
index 8378accb2a..33b2c9aa9d 100644
--- a/apps/codecs/lib/asm_mcf5249.h
+++ b/apps/codecs/lib/asm_mcf5249.h
@@ -125,6 +125,30 @@ void XNPROD31(int32_t a, int32_t b,
125 [t] "r" (_t), [v] "r" (_v) \ 125 [t] "r" (_t), [v] "r" (_v) \
126 : "cc"); 126 : "cc");
127 127
128#define XPROD31_R(_a, _b, _t, _v, _x, _y) \
129 asm volatile ("mac.l %[a], %[t], %%acc0;" \
130 "mac.l %[b], %[v], %%acc0;" \
131 "mac.l %[b], %[t], %%acc1;" \
132 "msac.l %[a], %[v], %%acc1;" \
133 "movclr.l %%acc0, %[x];" \
134 "movclr.l %%acc1, %[y];" \
135 : [x] "+&d" (_x), [y] "=&d" (_y) \
136 : [a] "r" (_a), [b] "r" (_b), \
137 [t] "r" (_t), [v] "r" (_v) \
138 : "cc");
139
140#define XNPROD31_R(_a, _b, _t, _v, _x, _y) \
141 asm volatile ("mac.l %[a], %[t], %%acc0;" \
142 "msac.l %[b], %[v], %%acc0;" \
143 "mac.l %[b], %[t], %%acc1;" \
144 "mac.l %[a], %[v], %%acc1;" \
145 "movclr.l %%acc0, %[x];" \
146 "movclr.l %%acc1, %[y];" \
147 : [x] "+&d" (_x), [y] "=&d" (_y) \
148 : [a] "r" (_a), [b] "r" (_b), \
149 [t] "r" (_t), [v] "r" (_v) \
150 : "cc");
151
128#ifndef _V_VECT_OPS 152#ifndef _V_VECT_OPS
129#define _V_VECT_OPS 153#define _V_VECT_OPS
130 154