aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-05-13 01:06:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-05-13 01:06:36 +0000
commit8585b768902331df85f7d1bbbc11bee4715da97a (patch)
tree2f78d385034e1d5f42086fcb32e0c7caf7d4d8f0
parent491c00eaae0cb9f5dce98a427f14f79617fdaee7 (diff)
parentca30a60d2d6fbab4ac07c63bfbf7bbbd1fe6a583 (diff)
downloadlibvpx-8585b768902331df85f7d1bbbc11bee4715da97a.tar.gz
-rw-r--r--libvpx/vp8/common/x86/filter_x86.c3
-rw-r--r--libvpx/vpx_dsp/deblock.c4
-rw-r--r--libvpx/vpx_ports/mem.h6
3 files changed, 10 insertions, 3 deletions
diff --git a/libvpx/vp8/common/x86/filter_x86.c b/libvpx/vp8/common/x86/filter_x86.c
index 2405342f0..73435a7dd 100644
--- a/libvpx/vp8/common/x86/filter_x86.c
+++ b/libvpx/vp8/common/x86/filter_x86.c
@@ -17,7 +17,8 @@ DECLARE_ALIGNED(16, const short, vp8_bilinear_filters_x86_4[8][8]) = {
{ 32, 32, 32, 32, 96, 96, 96, 96 }, { 16, 16, 16, 16, 112, 112, 112, 112 }
};
-DECLARE_ALIGNED(16, const short, vp8_bilinear_filters_x86_8[8][16]) = {
+DECLARE_PROTECTED(DECLARE_ALIGNED(16, const short,
+ vp8_bilinear_filters_x86_8[8][16])) = {
{ 128, 128, 128, 128, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 112, 112, 112, 112, 112, 112, 112, 112, 16, 16, 16, 16, 16, 16, 16, 16 },
{ 96, 96, 96, 96, 96, 96, 96, 96, 32, 32, 32, 32, 32, 32, 32, 32 },
diff --git a/libvpx/vpx_dsp/deblock.c b/libvpx/vpx_dsp/deblock.c
index 6c2748497..c70c5f02b 100644
--- a/libvpx/vpx_dsp/deblock.c
+++ b/libvpx/vpx_dsp/deblock.c
@@ -8,9 +8,9 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include <stdlib.h>
-#include "vpx/vpx_integer.h"
+#include "vpx_ports/mem.h"
-const int16_t vpx_rv[] = {
+DECLARE_PROTECTED(const int16_t vpx_rv[]) = {
8, 5, 2, 2, 8, 12, 4, 9, 8, 3, 0, 3, 9, 0, 0, 0, 8, 3, 14,
4, 10, 1, 11, 14, 1, 14, 9, 6, 12, 11, 8, 6, 10, 0, 0, 8, 9, 0,
3, 14, 8, 11, 13, 4, 2, 9, 0, 3, 9, 6, 1, 2, 3, 14, 13, 1, 8,
diff --git a/libvpx/vpx_ports/mem.h b/libvpx/vpx_ports/mem.h
index 2d49b7a06..110d538ed 100644
--- a/libvpx/vpx_ports/mem.h
+++ b/libvpx/vpx_ports/mem.h
@@ -33,6 +33,12 @@
#define UNINITIALIZED_IS_SAFE(x) x
#endif
+#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(_WIN32)
+#define DECLARE_PROTECTED(decl) decl __attribute__((visibility("protected")))
+#else
+#define DECLARE_PROTECTED(decl) decl
+#endif
+
#if HAVE_NEON && defined(_MSC_VER)
#define __builtin_prefetch(x)
#endif