cpu-64.asm
上传用户:hjq518
上传日期:2021-12-09
资源大小:5084k
文件大小:2k
源码类别:

Audio

开发平台:

Visual C++

  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. ;*          Loren Merritt <lorenm@u.washington.edu>
  8. ;*
  9. ;* This program is free software; you can redistribute it and/or modify
  10. ;* it under the terms of the GNU General Public License as published by
  11. ;* the Free Software Foundation; either version 2 of the License, or
  12. ;* (at your option) any later version.
  13. ;*
  14. ;* This program is distributed in the hope that it will be useful,
  15. ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. ;* GNU General Public License for more details.
  18. ;*
  19. ;* You should have received a copy of the GNU General Public License
  20. ;* along with this program; if not, write to the Free Software
  21. ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  22. ;*****************************************************************************
  23. %include "x86inc.asm"
  24. SECTION .text
  25. ;-----------------------------------------------------------------------------
  26. ; int x264_cpu_cpuid( int op, int *eax, int *ebx, int *ecx, int *edx )
  27. ;-----------------------------------------------------------------------------
  28. cglobal x264_cpu_cpuid
  29.     push    rbx
  30.     mov     r10,   r3
  31.     mov     r11,   r2
  32.     mov     r9,    r1
  33.     mov     eax,   r0d
  34.     cpuid
  35.     mov     [r9],  eax
  36.     mov     [r11], ebx
  37.     mov     [r10], ecx
  38.     mov     [r8],  edx
  39.     pop     rbx
  40.     ret
  41. ;-----------------------------------------------------------------------------
  42. ; void x264_emms( void )
  43. ;-----------------------------------------------------------------------------
  44. cglobal x264_emms
  45.     emms
  46.     ret