Merge ""Eliminated TOKENEXTRABITS" broke the windows build."
diff --git a/build/make/configure.sh b/build/make/configure.sh
index 23cf443..eead3b5 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -629,7 +629,7 @@
case ${toolchain} in
sparc-solaris-*)
add_extralibs -lposix4
- add_cflags "-DMUST_BE_ALIGNED"
+ disable fast_unaligned
;;
*-solaris-*)
add_extralibs -lposix4
diff --git a/vp8/common/reconinter.c b/vp8/common/reconinter.c
index 3b0405c..84cda13 100644
--- a/vp8/common/reconinter.c
+++ b/vp8/common/reconinter.c
@@ -10,6 +10,7 @@
#include "vpx_ports/config.h"
+#include "vpx/vpx_integer.h"
#include "recon.h"
#include "subpixel.h"
#include "blockd.h"
@@ -18,12 +19,6 @@
#include "onyxc_int.h"
#endif
-/* use this define on systems where unaligned int reads and writes are
- * not allowed, i.e. ARM architectures
- */
-/*#define MUST_BE_ALIGNED*/
-
-
static const int bbb[4] = {0, 2, 8, 10};
@@ -39,7 +34,7 @@
for (r = 0; r < 16; r++)
{
-#ifdef MUST_BE_ALIGNED
+#if !(CONFIG_FAST_UNALIGNED)
dst[0] = src[0];
dst[1] = src[1];
dst[2] = src[2];
@@ -58,10 +53,10 @@
dst[15] = src[15];
#else
- ((int *)dst)[0] = ((int *)src)[0] ;
- ((int *)dst)[1] = ((int *)src)[1] ;
- ((int *)dst)[2] = ((int *)src)[2] ;
- ((int *)dst)[3] = ((int *)src)[3] ;
+ ((uint32_t *)dst)[0] = ((uint32_t *)src)[0] ;
+ ((uint32_t *)dst)[1] = ((uint32_t *)src)[1] ;
+ ((uint32_t *)dst)[2] = ((uint32_t *)src)[2] ;
+ ((uint32_t *)dst)[3] = ((uint32_t *)src)[3] ;
#endif
src += src_stride;
@@ -81,7 +76,7 @@
for (r = 0; r < 8; r++)
{
-#ifdef MUST_BE_ALIGNED
+#if !(CONFIG_FAST_UNALIGNED)
dst[0] = src[0];
dst[1] = src[1];
dst[2] = src[2];
@@ -91,8 +86,8 @@
dst[6] = src[6];
dst[7] = src[7];
#else
- ((int *)dst)[0] = ((int *)src)[0] ;
- ((int *)dst)[1] = ((int *)src)[1] ;
+ ((uint32_t *)dst)[0] = ((uint32_t *)src)[0] ;
+ ((uint32_t *)dst)[1] = ((uint32_t *)src)[1] ;
#endif
src += src_stride;
dst += dst_stride;
@@ -111,7 +106,7 @@
for (r = 0; r < 4; r++)
{
-#ifdef MUST_BE_ALIGNED
+#if !(CONFIG_FAST_UNALIGNED)
dst[0] = src[0];
dst[1] = src[1];
dst[2] = src[2];
@@ -121,8 +116,8 @@
dst[6] = src[6];
dst[7] = src[7];
#else
- ((int *)dst)[0] = ((int *)src)[0] ;
- ((int *)dst)[1] = ((int *)src)[1] ;
+ ((uint32_t *)dst)[0] = ((uint32_t *)src)[0] ;
+ ((uint32_t *)dst)[1] = ((uint32_t *)src)[1] ;
#endif
src += src_stride;
dst += dst_stride;
@@ -154,13 +149,13 @@
for (r = 0; r < 4; r++)
{
-#ifdef MUST_BE_ALIGNED
+#if !(CONFIG_FAST_UNALIGNED)
pred_ptr[0] = ptr[0];
pred_ptr[1] = ptr[1];
pred_ptr[2] = ptr[2];
pred_ptr[3] = ptr[3];
#else
- *(int *)pred_ptr = *(int *)ptr ;
+ *(uint32_t *)pred_ptr = *(uint32_t *)ptr ;
#endif
pred_ptr += pitch;
ptr += d->pre_stride;