From 00ea542df2d60144fe1ed97d0906430cb4c7b0ae Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Thu, 13 Nov 2014 20:13:34 +0200 Subject: Remove unreachable code --- src/ffts.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ffts.c') 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) -- cgit v1.1