mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Fixed mixed tabs and spacing and comments in contrib/powerpc/linux.c
This commit is contained in:
parent
19425d32f3
commit
d57bed7838
@ -11,8 +11,7 @@
|
|||||||
* BUG REPORTS: png-mng-implement@sourceforge.net
|
* BUG REPORTS: png-mng-implement@sourceforge.net
|
||||||
*
|
*
|
||||||
* png_have_vsx implemented for Linux by reading the widely available
|
* png_have_vsx implemented for Linux by reading the widely available
|
||||||
* pseudo-file /proc/cpuinfo. Result is cached so if function will be called
|
* pseudo-file /proc/cpuinfo.
|
||||||
* multiple times only one reading is perfomed.
|
|
||||||
*
|
*
|
||||||
* This code is strict ANSI-C and is probably moderately portable; it does
|
* 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.
|
* however use <stdio.h> and it assumes that /proc/cpuinfo is never localized.
|
||||||
@ -44,12 +43,12 @@ png_have_vsx(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
token = strstr(input,string);
|
token = strstr(input,string);
|
||||||
if(token != NULL)
|
if(token != NULL)
|
||||||
return cachedResult;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef PNG_WARNINGS_SUPPORTED
|
#ifdef PNG_WARNINGS_SUPPORTED
|
||||||
else
|
else
|
||||||
png_warning(png_ptr, "/proc/cpuinfo open failed");
|
png_warning(png_ptr, "/proc/cpuinfo open failed");
|
||||||
#endif
|
#endif
|
||||||
return cachedResult;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user