summaryrefslogtreecommitdiffstats
path: root/src/codegen.c
diff options
context:
space:
mode:
authorAnthony Blake <anthonix@me.com>2012-11-15 15:31:39 +1300
committerAnthony Blake <anthonix@me.com>2012-11-15 15:31:39 +1300
commit09beffbe4a15a1d9ff4eab718f7e077ad52f9181 (patch)
tree9cbb15bd31bb00ce4f0f1df85b8aaa2f3760c29d /src/codegen.c
parent3c5f840a17c20a20eeb09f6628c1e2f16b8b9ca9 (diff)
downloadffts-09beffbe4a15a1d9ff4eab718f7e077ad52f9181.zip
ffts-09beffbe4a15a1d9ff4eab718f7e077ad52f9181.tar.gz
Fixed some compiler warnings, generalized transform interface (in prep for double etc)
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 5e761e3..67e9683 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -144,10 +144,13 @@ void insert_nops(uint8_t **p, uint32_t count) {
}
}
+
void align_mem16(uint8_t **p, uint32_t offset) {
+#ifdef __ARM_NEON__
int r = (16 - (offset & 0xf)) - ((uint32_t)(*p) & 0xf);
r = (16 + r) & 0xf;
insert_nops(p, r);
+#endif
}
void ffts_generate_func_code(ffts_plan_t *p, size_t N, size_t leafN, int sign) {
OpenPOWER on IntegriCloud