xref: /aosp_15_r20/external/libjpeg-turbo/jconfigint.h (revision dfc6aa5c1cfd4bc4e2018dc74aa96e29ee49c6da)
1 /* libjpeg-turbo build number */
2 #define BUILD  ""
3 
4 /* Compiler's inline keyword */
5 #undef inline
6 
7 /* How to obtain function inlining. */
8 #ifndef INLINE
9 #if defined(__GNUC__)
10 #define INLINE  inline __attribute__((always_inline))
11 #elif defined(_MSC_VER)
12 #define INLINE  __forceinline
13 #else
14 #define INLINE
15 #endif
16 #endif
17 
18 /* How to obtain thread-local storage */
19 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))
20 #define THREAD_LOCAL  __declspec(thread)
21 #else
22 #define THREAD_LOCAL  __thread
23 #endif
24 
25 /* Define to the full name of this package. */
26 #define PACKAGE_NAME  "libjpeg-turbo"
27 
28 /* Version number of package */
29 #define VERSION  "2.1.5.1"
30 
31 /* The size of `size_t', as computed by sizeof. */
32 #include <stdint.h>
33 #if __WORDSIZE==64 || defined(_WIN64)
34 #define SIZEOF_SIZE_T  8
35 #else
36 #define SIZEOF_SIZE_T  4
37 #endif
38 
39 /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */
40 #if defined(__GNUC__)
41 #define HAVE_BUILTIN_CTZL
42 #endif
43 
44 /* Define to 1 if you have the <intrin.h> header file. */
45 #if defined(_MSC_VER)
46 #define HAVE_INTRIN_H  1
47 #endif
48 
49 #if defined(_MSC_VER) && defined(HAVE_INTRIN_H)
50 #if (SIZEOF_SIZE_T == 8)
51 #define HAVEBITSCANFORWARD64
52 #elif (SIZEOF_SIZE_T == 4)
53 #define HAVEBITSCANFORWARD
54 #endif
55 #endif
56 
57 #if defined(__has_attribute)
58 #if __has_attribute(fallthrough)
59 #define FALLTHROUGH __attribute__((fallthrough));
60 #else
61 #define FALLTHROUGH
62 #endif
63 #else
64 #define FALLTHROUGH
65 #endif
66