Commit cf7442d6 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

libFLAC/cpu.c: Assume Android has SSE

According to https://developer.android.com/ndk/guides/abis.html#x86
Android always support SSE, so there's no need to test SSE OS support.

Why both __ANDROID__ and ANDROID are tested:
http://stackoverflow.com/questions/15328751/android-macro-suddenly-not-defined
http://stackoverflow.com/questions/6374523/how-to-detect-compilation-by-android-ndk-in-a-c-c-file
https://groups.google.com/forum/#!topic/android-ndk/cf9_f1SLXls

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent e771e7b6
......@@ -240,6 +240,8 @@ void FLAC__cpu_info(FLAC__CPUInfo *info)
# else
disable_sse(info);
# endif
#elif defined(__ANDROID__) || defined(ANDROID)
/* no need to check OS SSE support */
#elif defined(__linux__)
int sse = 0;
struct sigaction sigill_save;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment