blob: ec343ed3aa6c01e19a27e2d7c3d661df27d9eb82 [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
Jake Weinstein8683f0e2020-08-21 18:48:40 +020027/* 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 Sarett8f300592015-11-23 17:28:50 -050034/* Define to the full name of this package. */
Haibo Huang090811c2019-03-15 09:25:39 -070035#define PACKAGE_NAME "libjpeg-turbo"
Matt Sarett8f300592015-11-23 17:28:50 -050036
37/* Version number of package */
Jake Weinstein8683f0e2020-08-21 18:48:40 +020038#define VERSION "2.0.5"
Alex Naidis6eb7d372016-10-16 23:10:08 +020039
Haibo Huang090811c2019-03-15 09:25:39 -070040/* The size of `size_t', as computed by sizeof. */
Alex Naidis6eb7d372016-10-16 23:10:08 +020041/* 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 Huang090811c2019-03-15 09:25:39 -070046 #define SIZEOF_SIZE_T __SIZEOF_SIZE_T__
Alex Naidis6eb7d372016-10-16 23:10:08 +020047#else
Haibo Huang090811c2019-03-15 09:25:39 -070048 #error cannot determine the size of size_t
Alex Naidis6eb7d372016-10-16 23:10:08 +020049#endif
50
Haibo Huang090811c2019-03-15 09:25:39 -070051/* 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__