diff options
author | Haibo Huang <hhb@google.com> | 2019-06-10 15:31:49 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-06-10 15:31:49 -0700 |
commit | 490afb6c027627b58763a986e1b464d85814080e (patch) | |
tree | 478f3db238be7e08885ac80ac8ef1be9935441bb /contrib/powerpc-vsx/linux_aux.c | |
parent | 2c58cd950f0cbbc337e91fc2ee184cb7039eef74 (diff) | |
parent | aa0ce810a62b165c39abf6252c5fec107716a2fe (diff) |
Merge "Merge tag 'v1.6.37' into HEAD" am: 7794b22253
am: aa0ce810a6
Change-Id: I100bb2612d1d9df7b2dfed94a1e39bf6a1271c89
Diffstat (limited to 'contrib/powerpc-vsx/linux_aux.c')
-rw-r--r-- | contrib/powerpc-vsx/linux_aux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/powerpc-vsx/linux_aux.c b/contrib/powerpc-vsx/linux_aux.c index 796922d77..7828acafb 100644 --- a/contrib/powerpc-vsx/linux_aux.c +++ b/contrib/powerpc-vsx/linux_aux.c @@ -23,14 +23,12 @@ static int png_have_vsx(png_structp png_ptr) { - - const unsigned long auxv = getauxval( AT_HWCAP ); + unsigned long auxv = getauxval(AT_HWCAP); PNG_UNUSED(png_ptr) - if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX )) + if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX)) return 1; else return 0; } - |