Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
7914f7a0
Commit
7914f7a0
authored
Aug 06, 2015
by
James Zern
Committed by
Gerrit Code Review
Aug 06, 2015
Browse files
Merge "endian_inl.h: fix mips32 android build"
parents
7ac505c7
2abfd8f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx_util/endian_inl.h
View file @
7914f7a0
...
...
@@ -63,6 +63,11 @@
#define HAVE_BUILTIN_BSWAP16
#endif
#if HAVE_MIPS32 && defined(__mips__) && !defined(__mips64) && \
defined(__mips_isa_rev) && (__mips_isa_rev >= 2) && (__mips_isa_rev < 6)
#define VPX_USE_MIPS32_R2
#endif
static
INLINE
uint16_t
BSwap16
(
uint16_t
x
)
{
#if defined(HAVE_BUILTIN_BSWAP16)
return
__builtin_bswap16
(
x
);
...
...
@@ -75,7 +80,7 @@ static INLINE uint16_t BSwap16(uint16_t x) {
}
static
INLINE
uint32_t
BSwap32
(
uint32_t
x
)
{
#if
HAV
E_MIPS32
#if
defined(VPX_US
E_MIPS32
_R2)
uint32_t
ret
;
__asm__
volatile
(
"wsbh %[ret], %[x]
\n\t
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment