diff options
Diffstat (limited to 'libpng/contrib/powerpc-vsx/linux_aux.c')
-rw-r--r-- | libpng/contrib/powerpc-vsx/linux_aux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libpng/contrib/powerpc-vsx/linux_aux.c b/libpng/contrib/powerpc-vsx/linux_aux.c index 796922d7..7828acaf 100644 --- a/libpng/contrib/powerpc-vsx/linux_aux.c +++ b/libpng/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; } - |