Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 1 | /* jconfigint.h. Customized for android on the basis of jconfigint.h.in. */ |
| 2 | |
| 3 | #ifndef __JCONFIGINT_H__ |
| 4 | #define __JCONFIGINT_H__ |
| 5 | |
Matt Sarett | 8f30059 | 2015-11-23 17:28:50 -0500 | [diff] [blame] | 6 | /* libjpeg-turbo build number */ |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 7 | #define BUILD "" |
| 8 | |
| 9 | /* Compiler's inline keyword */ |
| 10 | #undef inline |
Matt Sarett | 8f30059 | 2015-11-23 17:28:50 -0500 | [diff] [blame] | 11 | |
| 12 | /* How to obtain function inlining. */ |
| 13 | #ifndef INLINE |
| 14 | #ifndef TURBO_FOR_WINDOWS |
| 15 | #define INLINE inline __attribute__((always_inline)) |
| 16 | #else |
| 17 | #if defined(__GNUC__) |
| 18 | #define INLINE inline __attribute__((always_inline)) |
| 19 | #elif defined(_MSC_VER) |
| 20 | #define INLINE __forceinline |
| 21 | #else |
| 22 | #define INLINE |
| 23 | #endif |
| 24 | #endif |
| 25 | #endif |
| 26 | |
| 27 | /* Define to the full name of this package. */ |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 28 | #define PACKAGE_NAME "libjpeg-turbo" |
Matt Sarett | 8f30059 | 2015-11-23 17:28:50 -0500 | [diff] [blame] | 29 | |
| 30 | /* Version number of package */ |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 31 | #define VERSION "2.0.2" |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 32 | |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 33 | /* The size of `size_t', as computed by sizeof. */ |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 34 | /* The size of `size_t', as reported by the compiler through the |
| 35 | * builtin macro __SIZEOF_SIZE_T__. If the compiler does not |
| 36 | * report __SIZEOF_SIZE_T__ add a custom rule for the compiler |
| 37 | * here. */ |
| 38 | #ifdef __SIZEOF_SIZE_T__ |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 39 | #define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 40 | #else |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 41 | #error cannot determine the size of size_t |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 42 | #endif |
| 43 | |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 44 | /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */ |
| 45 | #define HAVE_BUILTIN_CTZL |
| 46 | |
| 47 | /* Define to 1 if you have the <intrin.h> header file. */ |
| 48 | /* #undef HAVE_INTRIN_H */ |
| 49 | |
| 50 | #if defined(_MSC_VER) && defined(HAVE_INTRIN_H) |
| 51 | #if (SIZEOF_SIZE_T == 8) |
| 52 | #define HAVE_BITSCANFORWARD64 |
| 53 | #elif (SIZEOF_SIZE_T == 4) |
| 54 | #define HAVE_BITSCANFORWARD |
| 55 | #endif |
| 56 | #endif |
| 57 | |
| 58 | #endif // __JCONFIGINT_H__ |