summaryrefslogtreecommitdiff
path: root/vpx_ports/mem.h
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2015-05-02 13:24:16 -0700
committerJames Zern <jzern@google.com>2015-05-07 11:55:08 -0700
commitfd3658b0e4b52b5045b4881900292258ed106f39 (patch)
tree2d44fe3f9faa39af60a67f06a79880ec0294be07 /vpx_ports/mem.h
parent76a08210b667f5c7ce8d64d930382c948dbeaea7 (diff)
downloadlibvpx-fd3658b0e4b52b5045b4881900292258ed106f39.tar
libvpx-fd3658b0e4b52b5045b4881900292258ed106f39.tar.gz
libvpx-fd3658b0e4b52b5045b4881900292258ed106f39.tar.bz2
libvpx-fd3658b0e4b52b5045b4881900292258ed106f39.zip
replace DECLARE_ALIGNED_ARRAY w/DECLARE_ALIGNED
this macro was used inconsistently and only differs in behavior from DECLARE_ALIGNED when an alignment attribute is unavailable. this macro is used with calls to assembly, while generic c-code doesn't rely on it, so in a c-only build without an alignment attribute the code will function as expected. Change-Id: Ie9d06d4028c0de17c63b3a27e6c1b0491cc4ea79
Diffstat (limited to 'vpx_ports/mem.h')
-rw-r--r--vpx_ports/mem.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/vpx_ports/mem.h b/vpx_ports/mem.h
index 1cb8c8cd9..0106a45d6 100644
--- a/vpx_ports/mem.h
+++ b/vpx_ports/mem.h
@@ -24,17 +24,6 @@
#define DECLARE_ALIGNED(n,typ,val) typ val
#endif
-
-/* Declare an aligned array on the stack, for situations where the stack
- * pointer may not have the alignment we expect. Creates an array with a
- * modified name, then defines val to be a pointer, and aligns that pointer
- * within the array.
- */
-#define DECLARE_ALIGNED_ARRAY(a,typ,val,n)\
- typ val##_[(n)+(a)/sizeof(typ)+1];\
- typ *val = (typ*)((((intptr_t)val##_)+(a)-1)&((intptr_t)-(a)))
-
-
/* Indicates that the usage of the specified variable has been audited to assure
* that it's safe to use uninitialized. Silences 'may be used uninitialized'
* warnings on gcc.