Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10348 Details for
Bug 18511
emerge mplayer doesn't detect/use altivec on benh kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
auxtable parser, just shows if the altivec is present.
auxtable.c (text/plain), 507 bytes, created by
Luca Barbato
on 2003-04-07 18:18:35 UTC
(
hide
)
Description:
auxtable parser, just shows if the altivec is present.
Filename:
MIME Type:
Creator:
Luca Barbato
Created:
2003-04-07 18:18:35 UTC
Size:
507 bytes
patch
obsolete
>/* sample program demonstrating use of the ELF AUX table on PowerPC Linux. */ > >#include <stdio.h> >#include <elf.h> >#include <asm/cputable.h> > >int >main(int argc, char *argv[], char *envp[], Elf32_auxv_t *aux_table) >{ > Elf32_auxv_t *entry; > > for (entry = aux_table; entry->a_type != AT_NULL; entry++) { > if (entry->a_type == AT_HWCAP) { > if (entry->a_un.a_val & PPC_FEATURE_HAS_ALTIVEC) { > printf("have Altivec\n"); > } else { > printf("don't have Altivec\n"); > } > break; > } > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 18511
:
10050
|
10308
|
10309
|
10310
|
10347
| 10348 |
10550