]> git.sesse.net Git - x264/blob - common/x86/cpu-64.asm
force unroll macroblock_load_pic_pointers
[x264] / common / x86 / cpu-64.asm
1 ;*****************************************************************************
2 ;* cpu-64.asm: h264 encoder library
3 ;*****************************************************************************
4 ;* Copyright (C) 2003-2008 x264 project
5 ;*
6 ;* Authors: Laurent Aimar <fenrir@via.ecp.fr>
7 ;*
8 ;* This program is free software; you can redistribute it and/or modify
9 ;* it under the terms of the GNU General Public License as published by
10 ;* the Free Software Foundation; either version 2 of the License, or
11 ;* (at your option) any later version.
12 ;*
13 ;* This program is distributed in the hope that it will be useful,
14 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 ;* GNU General Public License for more details.
17 ;*
18 ;* You should have received a copy of the GNU General Public License
19 ;* along with this program; if not, write to the Free Software
20 ;* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21 ;*****************************************************************************
22
23 %include "x86inc.asm"
24
25 SECTION .text
26
27 ;-----------------------------------------------------------------------------
28 ; int x264_cpu_cpuid( int op, int *eax, int *ebx, int *ecx, int *edx )
29 ;-----------------------------------------------------------------------------
30 cglobal x264_cpu_cpuid
31     push    rbx
32     mov     r10,   r3
33     mov     r11,   r2
34     mov     r9,    r1
35     mov     eax,   r0d
36     cpuid
37     mov     [r9],  eax
38     mov     [r11], ebx
39     mov     [r10], ecx
40     mov     [r8],  edx
41     pop     rbx
42     ret
43
44 ;-----------------------------------------------------------------------------
45 ; void x264_emms( void )
46 ;-----------------------------------------------------------------------------
47 cglobal x264_emms
48     emms
49     ret
50