Changeset 2ff83248d38df880b8202d3360c09244dbfbe82a
- Timestamp:
- 02/10/05 01:29:56
(3 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1128209396 +0000
- git-parent:
[e8b1a9f87d29b362cbb2513f66cdea0e7a430682]
- git-author:
- Sam Hocevar <sam@videolan.org> 1128209396 +0000
- Message:
- src/misc/cpu.c: no need to push/pop %rbx before cpuid on x86_64.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rfe087a3 |
r2ff8324 |
|
| 87 | 87 | # if defined( __x86_64__ ) |
|---|
| 88 | 88 | # define cpuid( reg ) \ |
|---|
| 89 | | asm volatile ( "push %%rbx\n\t" \ |
|---|
| 90 | | "cpuid\n\t" \ |
|---|
| | 89 | asm volatile ( "cpuid\n\t" \ |
|---|
| 91 | 90 | "movl %%ebx,%1\n\t" \ |
|---|
| 92 | | "pop %%rbx\n\t" \ |
|---|
| 93 | 91 | : "=a" ( i_eax ), \ |
|---|
| 94 | 92 | "=r" ( i_ebx ), \ |
|---|