mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-25 10:16:45 +02:00
cpu.h,cosmetics: segment defines
Change-Id: Idc6dcd31e95de1c89b2a35b4c67fa66b92fe1a60
This commit is contained in:
parent
0c496a4ff9
commit
3fb8294762
@ -43,6 +43,9 @@
|
|||||||
#define __has_builtin(x) 0
|
#define __has_builtin(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// x86 defines.
|
||||||
|
|
||||||
#if !defined(HAVE_CONFIG_H)
|
#if !defined(HAVE_CONFIG_H)
|
||||||
#if defined(_MSC_VER) && _MSC_VER > 1310 && \
|
#if defined(_MSC_VER) && _MSC_VER > 1310 && \
|
||||||
(defined(_M_X64) || defined(_M_IX86))
|
(defined(_M_X64) || defined(_M_IX86))
|
||||||
@ -80,6 +83,9 @@
|
|||||||
#undef WEBP_MSC_SSE41
|
#undef WEBP_MSC_SSE41
|
||||||
#undef WEBP_MSC_SSE2
|
#undef WEBP_MSC_SSE2
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// Arm defines.
|
||||||
|
|
||||||
// The intrinsics currently cause compiler errors with arm-nacl-gcc and the
|
// The intrinsics currently cause compiler errors with arm-nacl-gcc and the
|
||||||
// inline assembly would need to be modified for use with Native Client.
|
// inline assembly would need to be modified for use with Native Client.
|
||||||
#if ((defined(__ARM_NEON__) || defined(__aarch64__)) && \
|
#if ((defined(__ARM_NEON__) || defined(__aarch64__)) && \
|
||||||
@ -115,6 +121,9 @@
|
|||||||
#define WEBP_HAVE_NEON
|
#define WEBP_HAVE_NEON
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// MIPS defines.
|
||||||
|
|
||||||
#if defined(__mips__) && !defined(__mips64) && defined(__mips_isa_rev) && \
|
#if defined(__mips__) && !defined(__mips64) && defined(__mips_isa_rev) && \
|
||||||
(__mips_isa_rev >= 1) && (__mips_isa_rev < 6)
|
(__mips_isa_rev >= 1) && (__mips_isa_rev < 6)
|
||||||
#define WEBP_USE_MIPS32
|
#define WEBP_USE_MIPS32
|
||||||
@ -130,6 +139,8 @@
|
|||||||
#define WEBP_USE_MSA
|
#define WEBP_USE_MSA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef WEBP_DSP_OMIT_C_CODE
|
#ifndef WEBP_DSP_OMIT_C_CODE
|
||||||
#define WEBP_DSP_OMIT_C_CODE 1
|
#define WEBP_DSP_OMIT_C_CODE 1
|
||||||
#endif
|
#endif
|
||||||
@ -146,6 +157,8 @@
|
|||||||
#define WEBP_NEON_WORK_AROUND_GCC 0
|
#define WEBP_NEON_WORK_AROUND_GCC 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
// This macro prevents thread_sanitizer from reporting known concurrent writes.
|
// This macro prevents thread_sanitizer from reporting known concurrent writes.
|
||||||
#define WEBP_TSAN_IGNORE_FUNCTION
|
#define WEBP_TSAN_IGNORE_FUNCTION
|
||||||
#if defined(__has_feature)
|
#if defined(__has_feature)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user