Skip to content

Commit

Permalink
* removed android cpu family check as it should be supported across a…
Browse files Browse the repository at this point in the history
…ll arches now.
  • Loading branch information
nfynt committed Apr 20, 2024
1 parent f6f6a10 commit b572aa5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions hello-neon/app/src/main/cpp/helloneon.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ jstring Java_com_example_helloneon_HelloNeon_stringFromJNI(JNIEnv* env,

strlcat(buffer, "Neon version : ", sizeof buffer);

family = android_getCpuFamily();
if ((family != ANDROID_CPU_FAMILY_ARM) && (family!=ANDROID_CPU_FAMILY_ARM64) &&
(family != ANDROID_CPU_FAMILY_X86)) {
strlcat(buffer, "Not an ARM and not an X86 CPU !\n", sizeof buffer);
goto EXIT;
}

features = android_getCpuFeatures();
if (((features & ANDROID_CPU_ARM_FEATURE_ARMv7) == 0) &&
((features & ANDROID_CPU_X86_FEATURE_SSSE3) == 0)) {
Expand Down

0 comments on commit b572aa5

Please sign in to comment.