blob: 5b28a1f4b8bf5b8fbac82f8ace58ecc16d334a91 [file] [log] [blame]
Alex Naidis6eb7d372016-10-16 23:10:08 +02001/* jconfigint.h. Customized for android on the basis of jconfigint.h.in. */
2
3#ifndef __JCONFIGINT_H__
4#define __JCONFIGINT_H__
5
Matt Sarett8f300592015-11-23 17:28:50 -05006/* libjpeg-turbo build number */
Haibo Huang090811c2019-03-15 09:25:39 -07007#define BUILD ""
8
9/* Compiler's inline keyword */
10#undef inline
Matt Sarett8f300592015-11-23 17:28:50 -050011
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 Huang090811c2019-03-15 09:25:39 -070028#define PACKAGE_NAME "libjpeg-turbo"
Matt Sarett8f300592015-11-23 17:28:50 -050029
30/* Version number of package */
Haibo Huang090811c2019-03-15 09:25:39 -070031#define VERSION "2.0.2"
Alex Naidis6eb7d372016-10-16 23:10:08 +020032
Haibo Huang090811c2019-03-15 09:25:39 -070033/* The size of `size_t', as computed by sizeof. */
Alex Naidis6eb7d372016-10-16 23:10:08 +020034/* 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 Huang090811c2019-03-15 09:25:39 -070039 #define SIZEOF_SIZE_T __SIZEOF_SIZE_T__
Alex Naidis6eb7d372016-10-16 23:10:08 +020040#else
Haibo Huang090811c2019-03-15 09:25:39 -070041 #error cannot determine the size of size_t
Alex Naidis6eb7d372016-10-16 23:10:08 +020042#endif
43
Haibo Huang090811c2019-03-15 09:25:39 -070044/* 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__