~ubuntu-branches/ubuntu/saucy/x264/saucy-updates

« back to all changes in this revision

Viewing changes to common/x86/cpu-a.asm

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2012-03-15 17:37:19 UTC
  • mto: (12.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: package-import@ubuntu.com-20120315173719-bpat2i6dvj0asbjn
Tags: upstream-0.120.2171+git01f7a33
ImportĀ upstreamĀ versionĀ 0.120.2171+git01f7a33

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;*****************************************************************************
2
2
;* cpu-a.asm: x86 cpu utilities
3
3
;*****************************************************************************
4
 
;* Copyright (C) 2003-2011 x264 project
 
4
;* Copyright (C) 2003-2012 x264 project
5
5
;*
6
6
;* Authors: Laurent Aimar <fenrir@via.ecp.fr>
7
7
;*          Loren Merritt <lorenm@u.washington.edu>
39
39
    push  r2
40
40
    push  r1
41
41
    mov  eax, r0d
 
42
    xor  ecx, ecx
42
43
    cpuid
43
 
    pop  rsi
44
 
    mov [rsi], eax
45
 
    pop  rsi
46
 
    mov [rsi], ebx
47
 
    pop  rsi
48
 
    mov [rsi], ecx
49
 
    pop  rsi
50
 
    mov [rsi], edx
 
44
    pop   r4
 
45
    mov [r4], eax
 
46
    pop   r4
 
47
    mov [r4], ebx
 
48
    pop   r4
 
49
    mov [r4], ecx
 
50
    pop   r4
 
51
    mov [r4], edx
51
52
    pop  rbx
52
53
    RET
53
54
 
59
60
    push  r1
60
61
    mov  ecx, r0d
61
62
    xgetbv
62
 
    pop  rsi
63
 
    mov [rsi], eax
64
 
    pop  rsi
65
 
    mov [rsi], edx
 
63
    pop   r4
 
64
    mov [r4], eax
 
65
    pop   r4
 
66
    mov [r4], edx
66
67
    RET
67
68
 
68
 
%ifndef ARCH_X86_64
 
69
%if ARCH_X86_64 == 0
69
70
 
70
71
;-----------------------------------------------------------------------------
71
72
; int cpu_cpuid_test( void )