diff options
author | James Zern <jzern@google.com> | 2023-05-02 12:24:43 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-05-02 12:28:50 -0700 |
commit | 3fb8294762edeec1373534d6a736590d7e8d71ea (patch) | |
tree | 9aa76dc97bf49fc9899f45f791f805d26447b41d | |
parent | 0c496a4ff92f6c8c3607bda29f442e254efd28f4 (diff) | |
download | libwebp-3fb8294762edeec1373534d6a736590d7e8d71ea.tar.gz |
cpu.h,cosmetics: segment defines
Change-Id: Idc6dcd31e95de1c89b2a35b4c67fa66b92fe1a60
-rw-r--r-- | src/dsp/cpu.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dsp/cpu.h b/src/dsp/cpu.h index 94ad34d5..c86540f2 100644 --- a/src/dsp/cpu.h +++ b/src/dsp/cpu.h @@ -43,6 +43,9 @@ #define __has_builtin(x) 0 #endif +//------------------------------------------------------------------------------ +// x86 defines. + #if !defined(HAVE_CONFIG_H) #if defined(_MSC_VER) && _MSC_VER > 1310 && \ (defined(_M_X64) || defined(_M_IX86)) @@ -80,6 +83,9 @@ #undef WEBP_MSC_SSE41 #undef WEBP_MSC_SSE2 +//------------------------------------------------------------------------------ +// Arm defines. + // The intrinsics currently cause compiler errors with arm-nacl-gcc and the // inline assembly would need to be modified for use with Native Client. #if ((defined(__ARM_NEON__) || defined(__aarch64__)) && \ @@ -115,6 +121,9 @@ #define WEBP_HAVE_NEON #endif +//------------------------------------------------------------------------------ +// MIPS defines. + #if defined(__mips__) && !defined(__mips64) && defined(__mips_isa_rev) && \ (__mips_isa_rev >= 1) && (__mips_isa_rev < 6) #define WEBP_USE_MIPS32 @@ -130,6 +139,8 @@ #define WEBP_USE_MSA #endif +//------------------------------------------------------------------------------ + #ifndef WEBP_DSP_OMIT_C_CODE #define WEBP_DSP_OMIT_C_CODE 1 #endif @@ -146,6 +157,8 @@ #define WEBP_NEON_WORK_AROUND_GCC 0 #endif +//------------------------------------------------------------------------------ + // This macro prevents thread_sanitizer from reporting known concurrent writes. #define WEBP_TSAN_IGNORE_FUNCTION #if defined(__has_feature) |