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