Commit 239be1a3 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

To have NEON a CPU must be an ARM!

parent 4ad5b7be
......@@ -32,6 +32,6 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *ajvm, void *reserved)
extern "C" jboolean Java_org_linphone_mediastream_CpuUtils_hasNeon(JNIEnv* env, jobject thiz) {
return android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON;
return (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) && (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON);
Markdown is supported
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