jconfigint.h (2030B)
1 /* libjpeg-turbo build number */ 2 #define BUILD "20240914" 3 4 /* How to hide global symbols. */ 5 #define HIDDEN __attribute__((visibility("hidden"))) 6 7 /* Need to use Mozilla-specific function inlining. */ 8 #include "mozilla/Attributes.h" 9 #define INLINE MOZ_ALWAYS_INLINE 10 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 17 18 /* Define to the full name of this package. */ 19 #define PACKAGE_NAME "libjpeg-turbo" 20 21 /* Version number of package */ 22 #define VERSION "3.0.4" 23 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 30 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 35 36 /* Define to 1 if you have the <intrin.h> header file. */ 37 #ifdef _MSC_VER 38 #define HAVE_INTRIN_H 1 39 #endif 40 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 48 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 58 59 /* 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! 65 */ 66 67 #ifndef BITS_IN_JSAMPLE 68 #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ 69 #endif 70 71 #undef C_ARITH_CODING_SUPPORTED 72 #undef D_ARITH_CODING_SUPPORTED 73 #undef WITH_SIMD 74 75 #if BITS_IN_JSAMPLE == 8 76 77 /* Support arithmetic encoding */ 78 /* #undef C_ARITH_CODING_SUPPORTED */ 79 80 /* Support arithmetic decoding */ 81 /* #undef D_ARITH_CODING_SUPPORTED */ 82 83 /* Use accelerated SIMD routines. */ 84 #ifdef MOZ_WITH_SIMD 85 #define WITH_SIMD 1 86 #else 87 #undef WITH_SIMD 88 #endif 89 90 #endif