Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/libjpeg-turbo/src/jconfigint.h
9904 views
1
// Originally generated by libjpeg-turbo's cmake build, then modified to support multiple platforms.
2
3
/* libjpeg-turbo build number */
4
#define BUILD "20250317"
5
6
/* How to hide global symbols. */
7
#ifndef HIDDEN
8
#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
9
#define HIDDEN __attribute__((visibility("hidden")))
10
#else
11
#define HIDDEN
12
#endif
13
#endif
14
15
/* Compiler's inline keyword */
16
#undef inline
17
18
/* How to obtain function inlining. */
19
#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
20
#define INLINE __inline__ __attribute__((always_inline))
21
#else
22
#define INLINE inline
23
#endif
24
25
/* How to obtain thread-local storage */
26
#if defined(_MSC_VER)
27
#define THREAD_LOCAL __declspec(thread)
28
#else
29
#define THREAD_LOCAL __thread
30
#endif
31
32
/* Define to the full name of this package. */
33
#define PACKAGE_NAME "libjpeg-turbo"
34
35
/* Version number of package */
36
#define VERSION "3.1.0"
37
38
/* The size of `size_t', as computed by sizeof. */
39
#if defined(__SIZEOF_SIZE_T__)
40
#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__
41
#elif defined(_WIN64)
42
#define SIZEOF_SIZE_T 8
43
#elif defined(_WIN32)
44
#define SIZEOF_SIZE_T 4
45
#else
46
#error "Cannot determine size of size_t"
47
#endif
48
49
/* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */
50
#if defined(__GNUC__)
51
#define HAVE_BUILTIN_CTZL
52
#endif
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
#if defined(__has_attribute)
66
#if __has_attribute(fallthrough)
67
#define FALLTHROUGH __attribute__((fallthrough));
68
#else
69
#define FALLTHROUGH
70
#endif
71
#else
72
#define FALLTHROUGH
73
#endif
74
75
/*
76
* Define BITS_IN_JSAMPLE as either
77
* 8 for 8-bit sample values (the usual setting)
78
* 12 for 12-bit sample values
79
* Only 8 and 12 are legal data precisions for lossy JPEG according to the
80
* JPEG standard, and the IJG code does not support anything else!
81
*/
82
83
#ifndef BITS_IN_JSAMPLE
84
#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
85
#endif
86
87
#undef C_ARITH_CODING_SUPPORTED
88
#undef D_ARITH_CODING_SUPPORTED
89
#undef WITH_SIMD
90
91
#if BITS_IN_JSAMPLE == 8
92
93
/* Support arithmetic encoding */
94
#define C_ARITH_CODING_SUPPORTED 1
95
96
/* Support arithmetic decoding */
97
#define D_ARITH_CODING_SUPPORTED 1
98
99
/* Use accelerated SIMD routines. */
100
//#define WITH_SIMD 1
101
102
#endif
103
104