1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef THIRD_PARTY_LIBJPEG_TURBO_JCONFIGINT_H 17 #define THIRD_PARTY_LIBJPEG_TURBO_JCONFIGINT_H 18 19 /* libjpeg-turbo build number */ 20 #define BUILD "20220811" 21 22 /* Compiler's inline keyword */ 23 #undef inline 24 25 /* How to obtain function inlining. */ 26 #ifdef _MSC_VER 27 #define INLINE __forceinline 28 #else 29 #define INLINE __inline__ __attribute__((always_inline)) 30 #endif 31 32 /* How to obtain thread-local storage */ 33 #define THREAD_LOCAL 34 35 /* Define to the full name of this package. */ 36 #define PACKAGE_NAME "libjpeg-turbo" 37 38 /* Version number of package */ 39 #define VERSION "2.0.5" 40 41 /* The size of `size_t', as computed by sizeof. */ 42 #ifdef __SIZEOF_SIZE_T__ 43 #define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ 44 #elif __WORDSIZE==64 || defined(_WIN64) 45 #define SIZEOF_SIZE_T 8 46 #else 47 #define SIZEOF_SIZE_T 4 48 #endif 49 50 /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */ 51 #define HAVE_BUILTIN_CTZL 52 53 /* Define to 1 if you have the <intrin.h> header file. */ 54 /* #undef HAVE_INTRIN_H */ 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 #endif