mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Fixed mixed tabs and spaces in contrib/powerpc/linux_aux.c
This commit is contained in:
parent
d57bed7838
commit
b1be78460a
@ -10,9 +10,7 @@
|
||||
* STATUS: COMPILED
|
||||
* BUG REPORTS: png-mng-implement@sourceforge.net
|
||||
*
|
||||
* png_have_vsx implemented for Linux by reading the widely available
|
||||
* pseudo-file /proc/cpuinfo. Result is cached so if function will be called
|
||||
* multiple times only one reading is perfomed.
|
||||
* png_have_vsx implemented for Linux by using the auxiliary vector mechanism.
|
||||
*
|
||||
* This code is strict ANSI-C and is probably moderately portable; it does
|
||||
* however use <stdio.h> and it assumes that /proc/cpuinfo is never localized.
|
||||
@ -26,7 +24,8 @@ png_have_vsx(png_structp png_ptr)
|
||||
{
|
||||
const unsigned long auxv = getauxval( AT_HWCAP );
|
||||
if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX ))
|
||||
return 1;
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user