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 | |
Jake Weinstein | 8683f0e | 2020-08-21 18:48:40 +0200 | [diff] [blame] | 27 | /* How to obtain thread-local storage */ |
| 28 | #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) |
| 29 | #define THREAD_LOCAL __declspec(thread) |
| 30 | #else |
| 31 | #define THREAD_LOCAL __thread |
| 32 | #endif |
| 33 | |
Matt Sarett | 8f30059 | 2015-11-23 17:28:50 -0500 | [diff] [blame] | 34 | /* Define to the full name of this package. */ |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 35 | #define PACKAGE_NAME "libjpeg-turbo" |
Matt Sarett | 8f30059 | 2015-11-23 17:28:50 -0500 | [diff] [blame] | 36 | |
| 37 | /* Version number of package */ |
Jake Weinstein | 8683f0e | 2020-08-21 18:48:40 +0200 | [diff] [blame] | 38 | #define VERSION "2.0.5" |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 39 | |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 40 | /* The size of `size_t', as computed by sizeof. */ |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 41 | /* The size of `size_t', as reported by the compiler through the |
| 42 | * builtin macro __SIZEOF_SIZE_T__. If the compiler does not |
| 43 | * report __SIZEOF_SIZE_T__ add a custom rule for the compiler |
| 44 | * here. */ |
| 45 | #ifdef __SIZEOF_SIZE_T__ |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 46 | #define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 47 | #else |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 48 | #error cannot determine the size of size_t |
Alex Naidis | 6eb7d37 | 2016-10-16 23:10:08 +0200 | [diff] [blame] | 49 | #endif |
| 50 | |
Haibo Huang | 090811c | 2019-03-15 09:25:39 -0700 | [diff] [blame] | 51 | /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */ |
| 52 | #define HAVE_BUILTIN_CTZL |
| 53 | |
| 54 | /* Define to 1 if you have the <intrin.h> header file. */ |
| 55 | /* #undef HAVE_INTRIN_H */ |
| 56 | |
| 57 | #if defined(_MSC_VER) && defined(HAVE_INTRIN_H) |
| 58 | #if (SIZEOF_SIZE_T == 8) |
| 59 | #define HAVE_BITSCANFORWARD64 |
| 60 | #elif (SIZEOF_SIZE_T == 4) |
| 61 | #define HAVE_BITSCANFORWARD |
| 62 | #endif |
| 63 | #endif |
| 64 | |
| 65 | #endif // __JCONFIGINT_H__ |