blob: 7914001beddc26d91f8362b7d96c837fd2707580 [file] [log] [blame]
Alex Naidis6eb7d372016-10-16 23:10:08 +02001Any Android specific modifications to upstream libjpeg-turbo (1.5.1) should
Matt Sarettb3ffc5a2015-11-24 12:18:04 -05002be listed here:
3
4(1) jconfig.h and jconfigint.h
5
6These are included upstream as jconfig.h.in and jconfigint.h.in.
7We have the option autogenerate these platform/version specific files (using
8the libjpeg-turbo build system) or to manually create them.
9
10Autogenerating these files on linux gets us most of the way, but we've needed
11to add some multi-platform flexibility to the INLINE and SIZEOF_SIZE_T macros.
12
Alex Naidis6eb7d372016-10-16 23:10:08 +020013(2) simd/jsimdext.inc
Matt Sarettb3ffc5a2015-11-24 12:18:04 -050014
15The modification enables us to compile x86 SIMD.
16
17The original code was:
18%define EXTN(name) _ %+ name
19The new code is:
20%define EXTN(name) name
21
22It is unclear why the unmodified code from upstream appends an underscore
23to name. Before removing the underscore, the code failed to link because
24the function names in the SIMD code did not match the callers (because of
25the extra underscore).