diff options
author | Haibo Huang <hhb@google.com> | 2019-06-10 22:08:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-06-10 22:08:55 +0000 |
commit | 7794b2225328b6423a98c2c8de2afa21e4783036 (patch) | |
tree | 478f3db238be7e08885ac80ac8ef1be9935441bb /contrib/powerpc-vsx/linux_aux.c | |
parent | 9ef33ccf9b2e957c1f5e228dbab15fbda1744300 (diff) | |
parent | 4f55151a4b8cbda0ea61646f437fdf57c54190d9 (diff) |
Merge "Merge tag 'v1.6.37' into HEAD"
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; } - |