diff --git a/README.chromium b/README.chromium index f803c4cd3..bd8220b5f 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 1086 +Version: 1088 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index c44212381..c136219fa 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1086 +#define LIBYUV_VERSION 1088 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/cpu_id.cc b/source/cpu_id.cc index 8f8a403ee..38e0f4e23 100644 --- a/source/cpu_id.cc +++ b/source/cpu_id.cc @@ -135,6 +135,12 @@ int ArmCpuCaps(const char* cpuinfo_name) { fclose(f); return kCpuHasNEON; } + // aarch64 uses asimd for Neon. + p = strstr(cpuinfo_line, " asimd"); + if (p && (p[6] == ' ' || p[6] == '\n')) { + fclose(f); + return kCpuHasNEON; + } } } fclose(f); diff --git a/unit_test/cpu_test.cc b/unit_test/cpu_test.cc index f346f503b..fd3965c31 100644 --- a/unit_test/cpu_test.cc +++ b/unit_test/cpu_test.cc @@ -126,6 +126,7 @@ TEST_F(libyuvTest, TestLinuxNeon) { if (FileExists("../../unit_test/testdata/arm_v7.txt")) { EXPECT_EQ(0, ArmCpuCaps("../../unit_test/testdata/arm_v7.txt")); EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("../../unit_test/testdata/tegra3.txt")); + EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("../../unit_test/testdata/juno.txt")); } else { printf("WARNING: unable to load \"../../unit_test/testdata/arm_v7.txt\"\n"); } diff --git a/unit_test/testdata/juno.txt b/unit_test/testdata/juno.txt new file mode 100644 index 000000000..c275be742 --- /dev/null +++ b/unit_test/testdata/juno.txt @@ -0,0 +1,15 @@ +Processor : AArch64 Processor rev 0 (aarch64) +processor : 0 +processor : 1 +processor : 2 +processor : 3 +processor : 4 +processor : 5 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 +CPU implementer : 0x41 +CPU architecture: AArch64 +CPU variant : 0x0 +CPU part : 0xd07 +CPU revision : 0 + +Hardware : Juno