diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-02-19 09:46:51 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-02-19 09:46:51 -0600 |
commit | 52846504da1f519cf1bb89636caf9110e8677443 (patch) | |
tree | 23f422961851360777ba2701b70e493a3ce8c999 /contrib/intel/intel_init.c | |
parent | d06d66e8990b39eef537c762604215beeb635591 (diff) |
[libpng16] Fix copyright in sse code, use C-style comments
Diffstat (limited to 'contrib/intel/intel_init.c')
-rw-r--r-- | contrib/intel/intel_init.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/contrib/intel/intel_init.c b/contrib/intel/intel_init.c index 80fcfc2ec..fc0d9abfd 100644 --- a/contrib/intel/intel_init.c +++ b/contrib/intel/intel_init.c @@ -2,6 +2,9 @@ /* intel_init.c - SSE2 optimized filter functions * * Copyright (c) 2016 Google, Inc. + * Written by Mike Klein and Matt Sarett + * Derived from arm/arm_init.c, which was + * Copyright (c) 2014 Glenn Randers-Pehrson * * Last changed in libpng 1.6.22 [(PENDING RELEASE)] * @@ -18,13 +21,14 @@ void png_init_filter_functions_sse2(png_structp pp, unsigned int bpp) { - // The techniques used to implement each of these filters in SSE operate on - // one pixel at a time. - // So they generally speed up 3bpp images about 3x, 4bpp images about 4x. - // They can scale up to 6 and 8 bpp images and down to 2 bpp images, - // but they'd not likely have any benefit for 1bpp images. - // Most of these can be implemented using only MMX and 64-bit registers, - // but they end up a bit slower than using the equally-ubiquitous SSE2. + /* The techniques used to implement each of these filters in SSE operate on + * one pixel at a time. + * So they generally speed up 3bpp images about 3x, 4bpp images about 4x. + * They can scale up to 6 and 8 bpp images and down to 2 bpp images, + * but they'd not likely have any benefit for 1bpp images. + * Most of these can be implemented using only MMX and 64-bit registers, + * but they end up a bit slower than using the equally-ubiquitous SSE2. + */ if (bpp == 3) { pp->read_filter[PNG_FILTER_VALUE_SUB-1] = png_read_filter_row_sub3_sse2; @@ -40,7 +44,9 @@ png_init_filter_functions_sse2(png_structp pp, unsigned int bpp) png_read_filter_row_paeth4_sse2; } - // No need optimize PNG_FILTER_VALUE_UP. The compiler should autovectorize. + /* No need optimize PNG_FILTER_VALUE_UP. The compiler should + * autovectorize. + */ } #endif /* PNG_INTEL_SSE_IMPLEMENTATION > 0 */ |