diff options
author | Andreas Huber <andih@google.com> | 2011-04-01 11:00:26 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-04-01 11:58:26 -0700 |
commit | 79f15823c34ae1e423108295e416213200bb280f (patch) | |
tree | 15fa170d24e1b6cd074bfc3fe4554a85eb328422 /vpx_ports | |
parent | 9a61bcc59a71a4a623711ef7fb43570abc73f575 (diff) | |
download | libvpx-79f15823c34ae1e423108295e416213200bb280f.tar.gz |
Upgrade to the latest version of libvpx pulled from the webm project's git server.
latest commit pulled from git://review.webmproject.org/libvpx.git:
82315be75d54d00ad5f2ea51f844f27f2d921dc0
Also enabled more optimizations in the neon build.
Change-Id: I744765d798471c30c2faf32af27161f772129516
Diffstat (limited to 'vpx_ports')
-rw-r--r-- | vpx_ports/mem_ops.h | 6 | ||||
-rw-r--r-- | vpx_ports/mem_ops_aligned.h | 8 | ||||
-rw-r--r-- | vpx_ports/vpx_timer.h | 24 | ||||
-rw-r--r-- | vpx_ports/x86_abi_support.asm | 10 |
4 files changed, 33 insertions, 15 deletions
diff --git a/vpx_ports/mem_ops.h b/vpx_ports/mem_ops.h index c178b8b74..0e523681d 100644 --- a/vpx_ports/mem_ops.h +++ b/vpx_ports/mem_ops.h @@ -9,10 +9,10 @@ */ -/* \file mem_ops.h - * \brief Provides portable memory access primatives +/* \file + * \brief Provides portable memory access primitives * - * This function provides portable primatives for getting and setting of + * This function provides portable primitives for getting and setting of * signed and unsigned integers in 16, 24, and 32 bit sizes. The operations * can be performed on unaligned data regardless of hardware support for * unaligned accesses. diff --git a/vpx_ports/mem_ops_aligned.h b/vpx_ports/mem_ops_aligned.h index 4c44aa260..82a18b2e0 100644 --- a/vpx_ports/mem_ops_aligned.h +++ b/vpx_ports/mem_ops_aligned.h @@ -9,12 +9,12 @@ */ -/* \file mem_ops_aligned.h - * \brief Provides portable memory access primatives for operating on aligned +/* \file + * \brief Provides portable memory access primitives for operating on aligned * data * - * This file is split from mem_ops.h for easier maintainence. See mem_ops.h - * for a more detailed description of these primatives. + * This file is split from mem_ops.h for easier maintenance. See mem_ops.h + * for a more detailed description of these primitives. */ #ifndef INCLUDED_BY_MEM_OPS_H #error Include mem_ops.h, not mem_ops_aligned.h directly. diff --git a/vpx_ports/vpx_timer.h b/vpx_ports/vpx_timer.h index 37a0c7cb2..c8335a0a8 100644 --- a/vpx_ports/vpx_timer.h +++ b/vpx_ports/vpx_timer.h @@ -12,6 +12,8 @@ #ifndef VPX_TIMER_H #define VPX_TIMER_H +#if CONFIG_OS_SUPPORT + #if defined(_WIN32) /* * Win32 specific includes @@ -93,5 +95,27 @@ vpx_usec_timer_elapsed(struct vpx_usec_timer *t) #endif } +#else /* CONFIG_OS_SUPPORT = 0*/ + +/* Empty timer functions if CONFIG_OS_SUPPORT = 0 */ +#ifndef timersub +#define timersub(a, b, result) +#endif + +struct vpx_usec_timer +{ + void *dummy; +}; + +static void +vpx_usec_timer_start(struct vpx_usec_timer *t) { } + +static void +vpx_usec_timer_mark(struct vpx_usec_timer *t) { } + +static long +vpx_usec_timer_elapsed(struct vpx_usec_timer *t) { return 0; } + +#endif /* CONFIG_OS_SUPPORT */ #endif diff --git a/vpx_ports/x86_abi_support.asm b/vpx_ports/x86_abi_support.asm index a872b280e..be64cd7c7 100644 --- a/vpx_ports/x86_abi_support.asm +++ b/vpx_ports/x86_abi_support.asm @@ -168,15 +168,10 @@ %macro GET_GOT 1 push %1 call %%get_got - %%sub_offset: - jmp %%exitGG %%get_got: - mov %1, [esp] - add %1, fake_got - %%sub_offset - ret - %%exitGG: + pop %1 %undef GLOBAL - %define GLOBAL(x) x + %1 - fake_got + %define GLOBAL(x) x + %1 - %%get_got %undef RESTORE_GOT %define RESTORE_GOT pop %1 %endmacro @@ -289,7 +284,6 @@ %elifidn __OUTPUT_FORMAT__,macho32 %macro SECTION_RODATA 0 section .text -fake_got: %endmacro %else %define SECTION_RODATA section .rodata |