summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnthony Blake <anthonix@me.com>2013-03-20 11:42:37 +1300
committerAnthony Blake <anthonix@me.com>2013-03-20 11:42:37 +1300
commit73a533c0d457b77ca2745a2824622e5d261b6bd8 (patch)
tree26d70ebf23da21dc45bbb531514efeac74732212 /src
parent49554c0feae58191e10b184dfd539dc4e28492d8 (diff)
downloadffts-73a533c0d457b77ca2745a2824622e5d261b6bd8.zip
ffts-73a533c0d457b77ca2745a2824622e5d261b6bd8.tar.gz
Fixed cacheflush bug on ARM/Linux -- thanks to Eric Humbert from Invoxia for reporting this bug
Diffstat (limited to 'src')
-rw-r--r--src/codegen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c
index ec4e635..4e0b633 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -615,6 +615,10 @@ void ffts_generate_func_code(ffts_plan_t *p, size_t N, size_t leafN, int sign) {
// sys_icache_invalidate(func, p->transform_size);
#elif __ANDROID__
cacheflush((long)(func), (long)(func) + p->transform_size, 0);
+#elif __linux__
+#ifdef __GNUC__
+ __clear_cache((long)(func), (long)(func) + p->transform_size);
+#endif
#endif
//fprintf(stderr, "size of transform %zu = %d\n", N, (fp-func)*4);
OpenPOWER on IntegriCloud