Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
51f3faba
Commit
51f3faba
authored
Sep 22, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a configure flag for SSE4
parent
5a0ff31e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
9 deletions
+31
-9
configure.ac
configure.ac
+31
-9
No files found.
configure.ac
View file @
51f3faba
...
...
@@ -1455,7 +1455,7 @@ AS_IF([test "${enable_sse}" != "no"], [
])
])
AC_ARG_ENABLE(ss
s
e3,
AC_ARG_ENABLE(sse3,
[ --disable-sse3 disable SSE3/SSSE3 optimizations (default auto)]
,, [
case "${host_cpu}" in
...
...
@@ -1468,7 +1468,7 @@ AC_ARG_ENABLE(ssse3,
esac
])
AS_IF([test "${enable_sse3}" != "no"], [
# SSE3
AC_CACHE_CHECK([if $CC groks SSE3 inline assembly],
[ac_cv_sse3_inline],
[CFLAGS="${CFLAGS_save} -O -msse3"
...
...
@@ -1478,10 +1478,8 @@ AS_IF([test "${enable_sse3}" != "no"], [
])
AS_IF([test "${ac_cv_sse3_inline}" != "no"], [
AC_DEFINE(CAN_COMPILE_SSE3, 1,
[Define to 1 if SSE3 inline assembly is available.])
]
)
[Define to 1 if SSE3 inline assembly is available.]) ])
# SSSE3
AC_CACHE_CHECK([if $CC groks SSSE3 inline assembly],
[ac_cv_ssse3_inline],
[CFLAGS="${CFLAGS_save} -O -mssse3"
...
...
@@ -1492,9 +1490,33 @@ AS_IF([test "${enable_sse3}" != "no"], [
AS_IF([test "${ac_cv_ssse3_inline}" != "no"], [
AC_DEFINE(CAN_COMPILE_SSSE3, 1,
[Define to 1 if SSSE3 inline assembly is available.])
]
)
[Define to 1 if SSSE3 inline assembly is available.]) ])
])
AC_ARG_ENABLE(sse4,
[ --disable-sse4 disable SSE4 optimizations (default auto)]
,, [
case "${host_cpu}" in
i686|x86_64)
enable_sse4=yes
;;
*)
enable_sse4=no
;;
esac
])
AS_IF([test "${enable_sse4}" != "no"], [
# SSE3
AC_CACHE_CHECK([if $CC groks SSE4 inline assembly],
[ac_cv_sse4_inline],
[CFLAGS="${CFLAGS_save} -O -msse4"
AC_TRY_COMPILE(,[void *p;asm volatile("pmaxsb %%xmm1,%%xmm0"::"r"(p));],
ac_cv_sse4_inline=yes, ac_cv_sse4_inline=no)
ARCH="${ARCH} sse4"
])
AS_IF([test "${ac_cv_sse4_inline}" != "no"], [
AC_DEFINE(CAN_COMPILE_SSE4, 1,
[Define to 1 if SSE4 inline assembly is available.]) ])
])
AC_CACHE_CHECK([if $CC groks 3D Now! inline assembly],
...
...
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