Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6bd859d6
Commit
6bd859d6
authored
Mar 08, 2008
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for x86 bswap instruction
Originally committed as revision 12375 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a73cbf97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
configure
configure
+3
-3
bswap.h
libavutil/bswap.h
+1
-1
No files found.
configure
View file @
6bd859d6
...
...
@@ -708,6 +708,7 @@ HAVE_LIST="
$THREADS_LIST
altivec_h
arpa_inet_h
bswap
byteswap_h
closesocket
cmov
...
...
@@ -1504,6 +1505,8 @@ EOF
# check whether binutils is new enough to compile SSSE3
enabled ssse3
&&
check_asm ssse3
'"pabsw %xmm0, %xmm0"'
check_asm bswap
'"bswap %%eax" ::: "%eax"'
fi
# check for assembler specific support
...
...
@@ -1989,9 +1992,6 @@ if enabled bigendian; then
echo
"WORDS_BIGENDIAN=yes"
>>
config.mak
echo
"#define WORDS_BIGENDIAN 1"
>>
$TMPH
fi
if
enabled mmx
;
then
echo
"#define __CPU__ 586"
>>
$TMPH
fi
if
enabled sdl
;
then
echo
"SDL_LIBS=
`
"
${
SDL_CONFIG
}
"
--libs
`
"
>>
config.mak
...
...
libavutil/bswap.h
View file @
6bd859d6
...
...
@@ -56,7 +56,7 @@ static av_always_inline uint16_t bswap_16(uint16_t x)
static
av_always_inline
uint32_t
bswap_32
(
uint32_t
x
)
{
#if defined(ARCH_X86)
#if
__CPU__ != 386
#if
def HAVE_BSWAP
__asm
(
"bswap %0"
:
"=r"
(
x
)
:
#else
...
...
Write
Preview
Markdown
is supported
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