mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-16 23:29:52 +08:00
MEMACCESS macro for NaCL Arm
BUG=333 TESTED=validator passes R=jfb@chromium.org, tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/13649004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1012 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
a9ff15b7bb
commit
bf3b111147
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1011
|
Version: 1012
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -427,7 +427,7 @@ typedef uint8 uvec8[16];
|
|||||||
"lea " #offset "(%q" #base ",%q" #index "," #scale "),%%r14d\n" \
|
"lea " #offset "(%q" #base ",%q" #index "," #scale "),%%r14d\n" \
|
||||||
#opcode " (%%r15,%%r14),%" #arg "\n" \
|
#opcode " (%%r15,%%r14),%" #arg "\n" \
|
||||||
BUNDLEUNLOCK
|
BUNDLEUNLOCK
|
||||||
#else
|
#else // defined(__native_client__) && defined(__x86_64__)
|
||||||
#define BUNDLEALIGN "\n"
|
#define BUNDLEALIGN "\n"
|
||||||
#define MEMACCESS(base) "(%" #base ")"
|
#define MEMACCESS(base) "(%" #base ")"
|
||||||
#define MEMACCESS2(offset, base) #offset "(%" #base ")"
|
#define MEMACCESS2(offset, base) #offset "(%" #base ")"
|
||||||
@ -444,6 +444,15 @@ typedef uint8 uvec8[16];
|
|||||||
#opcode " %%" #reg ","#offset "(%" #base ",%" #index "," #scale ")\n"
|
#opcode " %%" #reg ","#offset "(%" #base ",%" #index "," #scale ")\n"
|
||||||
#define MEMOPARG(opcode, offset, base, index, scale, arg) \
|
#define MEMOPARG(opcode, offset, base, index, scale, arg) \
|
||||||
#opcode " " #offset "(%" #base ",%" #index "," #scale "),%" #arg "\n"
|
#opcode " " #offset "(%" #base ",%" #index "," #scale "),%" #arg "\n"
|
||||||
|
#endif // defined(__native_client__) && defined(__x86_64__)
|
||||||
|
|
||||||
|
#if defined(__arm__)
|
||||||
|
#undef MEMACCESS
|
||||||
|
#if defined(__native_client__)
|
||||||
|
#define MEMACCESS(base) "bic %" #base ", #0xc0000000\n"
|
||||||
|
#else
|
||||||
|
#define MEMACCESS(base) "\n"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void I444ToARGBRow_NEON(const uint8* src_y,
|
void I444ToARGBRow_NEON(const uint8* src_y,
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1011
|
#define LIBYUV_VERSION 1012
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libyuv/basic_types.h"
|
#include "libyuv/basic_types.h"
|
||||||
|
#include "libyuv/row.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
namespace libyuv {
|
namespace libyuv {
|
||||||
@ -27,14 +28,9 @@ uint32 SumSquareError_NEON(const uint8* src_a, const uint8* src_b, int count) {
|
|||||||
|
|
||||||
".p2align 2 \n"
|
".p2align 2 \n"
|
||||||
"1: \n"
|
"1: \n"
|
||||||
// TODO(fbarchard): Define a macro for clearing address bits for NaCL.
|
MEMACCESS(0)
|
||||||
#if defined(__native_client__)
|
|
||||||
"bic %0, #0xc0000000 \n"
|
|
||||||
#endif
|
|
||||||
"vld1.8 {q0}, [%0]! \n"
|
"vld1.8 {q0}, [%0]! \n"
|
||||||
#if defined(__native_client__)
|
MEMACCESS(1)
|
||||||
"bic %1, #0xc0000000 \n"
|
|
||||||
#endif
|
|
||||||
"vld1.8 {q1}, [%1]! \n"
|
"vld1.8 {q1}, [%1]! \n"
|
||||||
"subs %2, %2, #16 \n"
|
"subs %2, %2, #16 \n"
|
||||||
"vsubl.u8 q2, d0, d2 \n"
|
"vsubl.u8 q2, d0, d2 \n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user