Commit 55b911ce authored by fbarchard@google.com's avatar fbarchard@google.com

Make LABELALIGN to 32 bytes for 32 bit x86 NaCL

BUG=none
TEST=ncval
R=nfullagar@google.com

Review URL: https://webrtc-codereview.appspot.com/6089004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@918 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent b14f46fa
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 915 Version: 918
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -35,6 +35,9 @@ extern "C" { ...@@ -35,6 +35,9 @@ extern "C" {
#define LIBYUV_SSSE3_ONLY #define LIBYUV_SSSE3_ONLY
#endif #endif
// Enable for NaCL pepper 33 for bundle and AVX2 support.
//#define NEW_BINUTILS
// The following are available on all x86 platforms: // The following are available on all x86 platforms:
#if !defined(LIBYUV_DISABLE_X86) && \ #if !defined(LIBYUV_DISABLE_X86) && \
(defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__))
...@@ -373,6 +376,11 @@ typedef uint8 uvec8[16]; ...@@ -373,6 +376,11 @@ typedef uint8 uvec8[16];
// TODO(nfullagar): When pepper_33 toolchain is distributed, default to // TODO(nfullagar): When pepper_33 toolchain is distributed, default to
// NEW_BINUTILS and remove all BUNDLEALIGN occurances. // NEW_BINUTILS and remove all BUNDLEALIGN occurances.
#if defined(__native_client__)
#define LABELALIGN ".p2align 5\n"
#else
#define LABELALIGN ".p2align 2\n"
#endif
#if defined(__native_client__) && defined(__x86_64__) #if defined(__native_client__) && defined(__x86_64__)
#if defined(NEW_BINUTILS) #if defined(NEW_BINUTILS)
#define BUNDLELOCK ".bundle_lock\n" #define BUNDLELOCK ".bundle_lock\n"
...@@ -383,7 +391,6 @@ typedef uint8 uvec8[16]; ...@@ -383,7 +391,6 @@ typedef uint8 uvec8[16];
#define BUNDLEUNLOCK "\n" #define BUNDLEUNLOCK "\n"
#define BUNDLEALIGN ".p2align 5\n" #define BUNDLEALIGN ".p2align 5\n"
#endif #endif
#define LABELALIGN ".p2align 5\n"
#define MEMACCESS(base) "%%nacl:(%%r15,%q" #base ")" #define MEMACCESS(base) "%%nacl:(%%r15,%q" #base ")"
#define MEMACCESS2(offset, base) "%%nacl:" #offset "(%%r15,%q" #base ")" #define MEMACCESS2(offset, base) "%%nacl:" #offset "(%%r15,%q" #base ")"
#define MEMLEA(offset, base) #offset "(%q" #base ")" #define MEMLEA(offset, base) #offset "(%q" #base ")"
...@@ -409,10 +416,7 @@ typedef uint8 uvec8[16]; ...@@ -409,10 +416,7 @@ typedef uint8 uvec8[16];
#opcode " (%%r15,%%r14),%" #arg "\n" \ #opcode " (%%r15,%%r14),%" #arg "\n" \
BUNDLEUNLOCK BUNDLEUNLOCK
#else #else
#define BUNDLELOCK "\n"
#define BUNDLEUNLOCK "\n"
#define BUNDLEALIGN "\n" #define BUNDLEALIGN "\n"
#define LABELALIGN ".p2align 2\n"
#define MEMACCESS(base) "(%" #base ")" #define MEMACCESS(base) "(%" #base ")"
#define MEMACCESS2(offset, base) #offset "(%" #base ")" #define MEMACCESS2(offset, base) #offset "(%" #base ")"
#define MEMLEA(offset, base) #offset "(%" #base ")" #define MEMLEA(offset, base) #offset "(%" #base ")"
......
...@@ -11,6 +11,6 @@ ...@@ -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 915 #define LIBYUV_VERSION 918
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment