updated licenses
[gnutls.git] / lib / accelerated / x86 / macosx / cpuid-x86-macosx.s
blob7a66ffcd752e4e1148d6944762665e1ccd1deaad
2 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
4 # Author: Nikos Mavrogiannopoulos
6 # This file is part of GnuTLS.
8 # The GnuTLS is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public License
10 # as published by the Free Software Foundation; either version 3 of
11 # the License, or (at your option) any later version.
13 # This library is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # *** This file is auto-generated ***
23 .file "devel/perlasm/cpuid-x86.s"
24 .text
25 .globl _gnutls_cpuid
26 .align 4
27 _gnutls_cpuid:
28 L_gnutls_cpuid_begin:
29 pushl %ebp
30 movl %esp,%ebp
31 subl $12,%esp
32 movl %ebx,(%esp)
33 movl 8(%ebp),%eax
34 movl %esi,4(%esp)
35 movl %edi,8(%esp)
36 pushl %ebx
37 .byte 0x0f,0xa2
38 movl %ebx,%edi
39 popl %ebx
40 movl %edx,%esi
41 movl 12(%ebp),%edx
42 movl %eax,(%edx)
43 movl 16(%ebp),%eax
44 movl %edi,(%eax)
45 movl 20(%ebp),%eax
46 movl %ecx,(%eax)
47 movl 24(%ebp),%eax
48 movl %esi,(%eax)
49 movl (%esp),%ebx
50 movl 4(%esp),%esi
51 movl 8(%esp),%edi
52 movl %ebp,%esp
53 popl %ebp
54 ret
55 .globl _gnutls_have_cpuid
56 .align 4
57 _gnutls_have_cpuid:
58 L_gnutls_have_cpuid_begin:
59 pushfl
60 popl %eax
61 orl $2097152,%eax
62 pushl %eax
63 popfl
64 pushfl
65 popl %eax
66 andl $2097152,%eax
67 ret
68 .byte 67,80,85,73,68,32,102,111,114,32,120,56,54,0