*/
+ #include <limits.h>
#include "vpx_config.h"
+#include "vpx_rtcd.h"
#include "vpx/vpx_integer.h"
-#include "recon.h"
-#include "subpixel.h"
#include "blockd.h"
#include "reconinter.h"
#if CONFIG_RUNTIME_CPU_DETECT
int mv_row = x->mode_info_context->mbmi.mv.as_mv.row;
int mv_col = x->mode_info_context->mbmi.mv.as_mv.col;
int offset;
- int pre_stride = x->block[16].pre_stride;
+ int pre_stride = x->pre.uv_stride;
/* calc uv motion vectors */
- if (mv_row < 0)
- mv_row -= 1;
- else
- mv_row += 1;
-
- if (mv_col < 0)
- mv_col -= 1;
- else
- mv_col += 1;
-
+ mv_row += 1 | (mv_row >> (sizeof(int) * CHAR_BIT - 1));
+ mv_col += 1 | (mv_col >> (sizeof(int) * CHAR_BIT - 1));
mv_row /= 2;
mv_col /= 2;
-
mv_row &= x->fullpixel_mask;
mv_col &= x->fullpixel_mask;