summaryrefslogtreecommitdiffstats
path: root/src/ffts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffts.c')
-rw-r--r--src/ffts.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ffts.c b/src/ffts.c
index 9ceb97f..d6a2b15 100644
--- a/src/ffts.c
+++ b/src/ffts.c
@@ -103,6 +103,9 @@ static FFTS_INLINE int ffts_deny_execute(void *start, size_t len)
static FFTS_INLINE int ffts_flush_instruction_cache(void *start, size_t length)
{
+#ifdef _WIN32
+ return !FlushInstructionCache(GetCurrentProcess(), start, length);
+#else
#ifdef __APPLE__
sys_icache_invalidate(start, length);
#elif __ANDROID__
@@ -113,10 +116,9 @@ static FFTS_INLINE int ffts_flush_instruction_cache(void *start, size_t length)
#elif __GNUC__
__clear_cache((long) start, (long) start + length);
#endif
-#elif _WIN32
- return !FlushInstructionCache(GetCurrentProcess(), start, length);
-#endif
return 0;
+#endif
+#endif
}
static FFTS_INLINE void *ffts_vmem_alloc(size_t length)
OpenPOWER on IntegriCloud