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
0a306cee
Commit
0a306cee
authored
Feb 01, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/misc/cpu.c:
* SSE2 detection, using a similar approch as for SSE
parent
675864e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
src/misc/cpu.c
src/misc/cpu.c
+20
-1
No files found.
src/misc/cpu.c
View file @
0a306cee
...
...
@@ -2,7 +2,7 @@
* cpu.c: CPU detection code
*****************************************************************************
* Copyright (C) 1998-2004 VideoLAN
* $Id: cpu.c,v 1.1
3 2004/01/20 15:34:44 hartman
Exp $
* $Id: cpu.c,v 1.1
4 2004/02/01 23:02:02 sigmunau
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -185,6 +185,25 @@ uint32_t CPUCapabilities( void )
}
# endif
}
if
(
i_edx
&
0x04000000
)
{
# ifdef CAN_COMPILE_SSE
/* We test if OS supports the SSE instructions */
psz_capability
=
"SSE2"
;
i_illegal
=
0
;
if
(
setjmp
(
env
)
==
0
)
{
/* Test a SSE2 instruction */
__asm__
__volatile__
(
"movupd %%xmm0, %%xmm0
\n
"
:
:
);
}
if
(
i_illegal
==
0
)
{
i_capabilities
|=
CPU_CAPABILITY_SSE2
;
}
# endif
}
/* test for additional capabilities */
cpuid
(
0x80000000
);
...
...
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