[libpng16] Changed NEON implementation selection mechanism to allow assembler

or intrinsics to be turned on during the build by defining
PNG_ARM_NEON_IMPLEMENTATION to the correct value (2 or 1).  The
default is "undefined" and the build type is selected in pngpriv.h.
This commit is contained in:
John Bowler
2013-10-25 16:11:57 -05:00
committed by Glenn Randers-Pehrson
parent bb9adfdad9
commit fd8bba4b80
5 changed files with 53 additions and 32 deletions

View File

@@ -25,7 +25,7 @@
* only works if -mfpu=neon is specified on the GCC command line. See pngpriv.h
* for the logic which sets PNG_USE_ARM_NEON_ASM:
*/
#ifdef PNG_USE_ARM_NEON_ASM /* else use arm/filter_neon_intrinsics.c */
#if PNG_ARM_NEON_IMPLEMENTATION == 2 /* hand-coded assembler */
#ifdef PNG_READ_SUPPORTED
#if PNG_ARM_NEON_OPT > 0
@@ -242,4 +242,4 @@ func png_read_filter_row_paeth3_neon, export=1
endfunc
#endif /* PNG_ARM_NEON_OPT > 0 */
#endif /* PNG_READ_SUPPORTED */
#endif /* PNG_USE_ARM_NEON_ASM */
#endif /* PNG_ARM_NEON_IMPLEMENTATION == 2 (assembler) */