mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Added PNG_UNUSED macro in contrib/powerpc/linux{_aux}.c
This commit is contained in:
parent
b1be78460a
commit
b42e8bce3a
@ -35,6 +35,8 @@ png_have_vsx(png_structp png_ptr)
|
|||||||
char input[MAXLINE];
|
char input[MAXLINE];
|
||||||
char *token = NULL;
|
char *token = NULL;
|
||||||
|
|
||||||
|
PNG_UNUSED(png_ptr)
|
||||||
|
|
||||||
f = fopen("/proc/cpuinfo", "r");
|
f = fopen("/proc/cpuinfo", "r");
|
||||||
if (f != NULL)
|
if (f != NULL)
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,11 @@
|
|||||||
static int
|
static int
|
||||||
png_have_vsx(png_structp png_ptr)
|
png_have_vsx(png_structp png_ptr)
|
||||||
{
|
{
|
||||||
|
|
||||||
const unsigned long auxv = getauxval( AT_HWCAP );
|
const 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;
|
return 1;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user