From d063c809bbffcbffc6276967e52d3107210d3e79 Mon Sep 17 00:00:00 2001 From: Anthony Blake Date: Thu, 13 Dec 2012 23:39:18 +1300 Subject: misc --- src/ffts_nd.c | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'src/ffts_nd.c') diff --git a/src/ffts_nd.c b/src/ffts_nd.c index 78f16c1..af1423d 100644 --- a/src/ffts_nd.c +++ b/src/ffts_nd.c @@ -58,10 +58,45 @@ void ffts_free_nd(ffts_plan_t *p) { free(p->transpose_buf); free(p); } - +#define TSIZE 32 +#include void ffts_transpose(uint64_t *in, uint64_t *out, int w, int h, uint64_t *buf) { #ifdef __ARM_NEON__ + uint64_t tmp[TSIZE*TSIZE] __attribute__((aligned(64))); + int tx, ty; + int x, y; + int tw = w / TSIZE; + int th = h / TSIZE; + for (ty=0;ty