mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user