Backed out changeset 1b14354719c0 (bug 1895254) for causing bustages on NavigationTra...
[gecko.git] / media / libjpeg / jconfigint.h
blob95768bf8651db552684d3da66b2b533e6fe8c6ba
1 /* libjpeg-turbo build number */
2 #define BUILD "20240508"
4 /* How to hide global symbols. */
5 #define HIDDEN __attribute__((visibility("hidden")))
7 /* Need to use Mozilla-specific function inlining. */
8 #include "mozilla/Attributes.h"
9 #define INLINE MOZ_ALWAYS_INLINE
11 /* How to obtain thread-local storage */
12 #if defined(_MSC_VER)
13 #define THREAD_LOCAL __declspec(thread)
14 #else
15 #define THREAD_LOCAL __thread
16 #endif
18 /* Define to the full name of this package. */
19 #define PACKAGE_NAME "libjpeg-turbo"
21 /* Version number of package */
22 #define VERSION "3.0.3"
24 /* The size of `size_t', as computed by sizeof. */
25 #ifdef HAVE_64BIT_BUILD
26 #define SIZEOF_SIZE_T 8
27 #else
28 #define SIZEOF_SIZE_T 4
29 #endif
31 /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */
32 #ifndef _MSC_VER
33 #define HAVE_BUILTIN_CTZL 1
34 #endif
36 /* Define to 1 if you have the <intrin.h> header file. */
37 #ifdef _MSC_VER
38 #define HAVE_INTRIN_H 1
39 #endif
41 #if defined(_MSC_VER) && defined(HAVE_INTRIN_H)
42 #if (SIZEOF_SIZE_T == 8)
43 #define HAVE_BITSCANFORWARD64
44 #elif (SIZEOF_SIZE_T == 4)
45 #define HAVE_BITSCANFORWARD
46 #endif
47 #endif
49 #if defined(__has_attribute)
50 #if __has_attribute(fallthrough)
51 #define FALLTHROUGH __attribute__((fallthrough));
52 #else
53 #define FALLTHROUGH
54 #endif
55 #else
56 #define FALLTHROUGH
57 #endif
60 * Define BITS_IN_JSAMPLE as either
61 * 8 for 8-bit sample values (the usual setting)
62 * 12 for 12-bit sample values
63 * Only 8 and 12 are legal data precisions for lossy JPEG according to the
64 * JPEG standard, and the IJG code does not support anything else!
67 #ifndef BITS_IN_JSAMPLE
68 #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
69 #endif
71 #undef C_ARITH_CODING_SUPPORTED
72 #undef D_ARITH_CODING_SUPPORTED
73 #undef WITH_SIMD
75 #if BITS_IN_JSAMPLE == 8
77 /* Support arithmetic encoding */
78 /* #undef C_ARITH_CODING_SUPPORTED */
80 /* Support arithmetic decoding */
81 /* #undef D_ARITH_CODING_SUPPORTED */
83 /* Use accelerated SIMD routines. */
84 #ifdef MOZ_WITH_SIMD
85 #define WITH_SIMD 1
86 #else
87 #undef WITH_SIMD
88 #endif
90 #endif