Path: blob/master/thirdparty/libjpeg-turbo/src/jconfigint.h
21746 views
// Originally generated by libjpeg-turbo's cmake build, then modified to support multiple platforms.12/* libjpeg-turbo build number */3#define BUILD "Godot"45/* How to hide global symbols. */6#if defined(__GNUC__)7#define HIDDEN __attribute__((visibility("hidden")))8#else9#define HIDDEN10#endif1112/* How to obtain function inlining. */13#if defined(_MSC_VER)14#define INLINE __forceinline15#elif defined(__GNUC__)16#define INLINE __inline__ __attribute__((always_inline))17#else18#define INLINE inline19#endif2021/* How to obtain thread-local storage */22#if defined(_MSC_VER)23#define THREAD_LOCAL __declspec(thread)24#else25#define THREAD_LOCAL __thread26#endif2728/* Define to the full name of this package. */29#define PACKAGE_NAME "libjpeg-turbo"3031/* Version number of package */32#define VERSION "3.1.3"3334/* The size of `size_t', as computed by sizeof. */35#if defined(__SIZEOF_SIZE_T__)36#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__37#elif defined(_WIN64)38#define SIZEOF_SIZE_T 839#elif defined(_WIN32)40#define SIZEOF_SIZE_T 441#else42#error "Cannot determine size of size_t"43#endif4445/* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */46#if defined(__GNUC__)47#define HAVE_BUILTIN_CTZL48#endif4950/* Define to 1 if you have the <intrin.h> header file. */51#if defined(_MSC_VER)52#define HAVE_INTRIN_H53#endif5455#if defined(_MSC_VER) && defined(HAVE_INTRIN_H)56#if (SIZEOF_SIZE_T == 8)57#define HAVE_BITSCANFORWARD6458#elif (SIZEOF_SIZE_T == 4)59#define HAVE_BITSCANFORWARD60#endif61#endif6263#if defined(__has_attribute)64#if __has_attribute(fallthrough)65#define FALLTHROUGH __attribute__((fallthrough));66#else67#define FALLTHROUGH68#endif69#else70#define FALLTHROUGH71#endif7273/*74* Define BITS_IN_JSAMPLE as either75* 8 for 8-bit sample values (the usual setting)76* 12 for 12-bit sample values77* Only 8 and 12 are legal data precisions for lossy JPEG according to the78* JPEG standard, and the IJG code does not support anything else!79*/8081#ifndef BITS_IN_JSAMPLE82#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */83#endif8485#undef C_ARITH_CODING_SUPPORTED86#undef D_ARITH_CODING_SUPPORTED87#undef WITH_SIMD8889#if BITS_IN_JSAMPLE == 89091/* Support arithmetic encoding */92#define C_ARITH_CODING_SUPPORTED 19394/* Support arithmetic decoding */95#define D_ARITH_CODING_SUPPORTED 19697/* Use accelerated SIMD routines. */98// Godot: Disabled for simplicity of compiling the library cross-platform.99// Could be enabled if it's confirmed to be worth the effort.100//#define WITH_SIMD 1101102#endif103104105