diff options
author | Johann <johannkoenig@google.com> | 2016-07-27 14:19:20 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2016-08-03 16:38:51 -0700 |
commit | a7a8e07a44f12673fad8c4250ad37309256966c3 (patch) | |
tree | 349c7255020064c8e801845a2d188fef5072ac97 /vpx_ports/mem.h | |
parent | 85e111b3ba5a80fa444868118a5cf7a265e37f50 (diff) | |
download | libvpx-a7a8e07a44f12673fad8c4250ad37309256966c3.tar libvpx-a7a8e07a44f12673fad8c4250ad37309256966c3.tar.gz libvpx-a7a8e07a44f12673fad8c4250ad37309256966c3.tar.bz2 libvpx-a7a8e07a44f12673fad8c4250ad37309256966c3.zip |
Pad 'Left' when building under ASan
The neon intrinsics are not able to load just the 4 values that are
used. In vpx_dsp/arm/intrapred_neon.c:dc_4x4 it loads 8 values for both
the 'above' and 'left' computations, but only uses the sum of the first
4 values.
BUG=webm:1268
Change-Id: I937113d7e3a21e25bebde3593de0446bf6b0115a
Diffstat (limited to 'vpx_ports/mem.h')
-rw-r--r-- | vpx_ports/mem.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vpx_ports/mem.h b/vpx_ports/mem.h index 7e77c6ca9..39211d759 100644 --- a/vpx_ports/mem.h +++ b/vpx_ports/mem.h @@ -48,4 +48,14 @@ #define CONVERT_TO_BYTEPTR(x) ((uint8_t *)(((uintptr_t)(x)) >> 1)) #endif // CONFIG_VP9_HIGHBITDEPTH +#if !defined(__has_feature) +#define __has_feature(x) 0 +#endif // !defined(__has_feature) + +#if __has_feature(address_sanitizer) || __SANITIZE_ADDRESS__ +#define VPX_WITH_ASAN 1 +#else +#define VPX_WITH_ASAN 0 +#endif // __has_feature(address_sanitizer) || __SANITIZE_ADDRESS + #endif // VPX_PORTS_MEM_H_ |