jconfigint.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* libjpeg-turbo build number */
  2. #define BUILD ""
  3. /* Compiler's inline keyword */
  4. #undef inline
  5. /* How to obtain function inlining. */
  6. #ifndef INLINE
  7. #if defined(__GNUC__)
  8. #define INLINE inline __attribute__((always_inline))
  9. #elif defined(_MSC_VER)
  10. #define INLINE __forceinline
  11. #else
  12. #define INLINE
  13. #endif
  14. #endif
  15. /* How to obtain thread-local storage */
  16. #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))
  17. #define THREAD_LOCAL __declspec(thread)
  18. #else
  19. #define THREAD_LOCAL __thread
  20. #endif
  21. /* Define to the full name of this package. */
  22. #define PACKAGE_NAME "libjpeg-turbo"
  23. /* Version number of package */
  24. #define VERSION "2.0.5"
  25. /* The size of `size_t', as computed by sizeof. */
  26. #if __WORDSIZE==64 || defined(_WIN64)
  27. #define SIZEOF_SIZE_T 8
  28. #else
  29. #define SIZEOF_SIZE_T 4
  30. #endif
  31. /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */
  32. #if defined(__GNUC__)
  33. #define HAVE_BUILTIN_CTZL
  34. #endif
  35. /* Define to 1 if you have the <intrin.h> header file. */
  36. #if defined(_MSC_VER)
  37. #define HAVE_INTRIN_H 1
  38. #endif
  39. #if defined(_MSC_VER) && defined(HAVE_INTRIN_H)
  40. #if (SIZEOF_SIZE_T == 8)
  41. #define HAVEBITSCANFORWARD64
  42. #elif (SIZEOF_SIZE_T == 4)
  43. #define HAVEBITSCANFORWARD
  44. #endif
  45. #endif
  46. /* How to obtain memory alignment for structures and variables. */
  47. #if defined(_MSC_VER)
  48. #define ALIGN(ALIGNMENT) __declspec(align((ALIGNMENT)))
  49. #elif defined(__clang__) || defined(__GNUC__)
  50. #define ALIGN(ALIGNMENT) __attribute__((aligned(ALIGNMENT)))
  51. #else
  52. #error "Unknown compiler"
  53. #endif