diff options
author | Anthony Blake <anthonix@me.com> | 2013-03-20 11:42:37 +1300 |
---|---|---|
committer | Anthony Blake <anthonix@me.com> | 2013-03-20 11:42:37 +1300 |
commit | 73a533c0d457b77ca2745a2824622e5d261b6bd8 (patch) | |
tree | 26d70ebf23da21dc45bbb531514efeac74732212 | |
parent | 49554c0feae58191e10b184dfd539dc4e28492d8 (diff) | |
download | ffts-73a533c0d457b77ca2745a2824622e5d261b6bd8.zip ffts-73a533c0d457b77ca2745a2824622e5d261b6bd8.tar.gz |
Fixed cacheflush bug on ARM/Linux -- thanks to Eric Humbert from Invoxia for reporting this bug
-rw-r--r-- | src/codegen.c | 4 |
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); |