Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for clearing the cache on Android arm64 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ffts.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ ffts_flush_instruction_cache(void *start, size_t length)
#ifdef __APPLE__
sys_icache_invalidate(start, length);
#elif __ANDROID__
#if __ARM_ARCH_ISA_A64
__builtin___clear_cache((long) start, (long) start + length);
#else
cacheflush((long) start, (long) start + length, 0);
#endif
#elif __linux__
#if GCC_VERSION_AT_LEAST(4,3)
__builtin___clear_cache(start, (char*) start + length);
Expand Down