Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ad54c6e1
Commit
ad54c6e1
authored
Jan 26, 2006
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/cpu.c: do not assume SYS_DARWIN means powerpc, so that we can
properly detect CPU features on a MacIntel.
parent
d7686e18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/misc/cpu.c
src/misc/cpu.c
+2
-2
No files found.
src/misc/cpu.c
View file @
ad54c6e1
...
...
@@ -33,7 +33,7 @@
# include <setjmp.h>
/* longjmp, setjmp */
#endif
#if
def SYS_DARWIN
#if
defined(SYS_DARWIN) && (defined(__ppc__) || defined(__ppc64__))
#include <sys/sysctl.h>
#endif
...
...
@@ -66,7 +66,7 @@ uint32_t CPUCapabilities( void )
{
volatile
uint32_t
i_capabilities
=
CPU_CAPABILITY_NONE
;
#if defined(
SYS_DARWIN
)
#if defined(
SYS_DARWIN) && (defined(__ppc__) || defined(__ppc64__)
)
int
selectors
[
2
]
=
{
CTL_HW
,
HW_VECTORUNIT
};
int
i_has_altivec
=
0
;
size_t
i_length
=
sizeof
(
i_has_altivec
);
...
...
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