updated licenses
[gnutls.git] / lib / accelerated / x86 / coff / cpuid-x86-coff.s
blob98dd86234fb8b7abfd387dc80f728e2ad9d348da
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 .def _gnutls_cpuid; .scl 2; .type 32; .endef
27 .align 16
28 _gnutls_cpuid:
29 .L_gnutls_cpuid_begin:
30 pushl %ebp
31 movl %esp,%ebp
32 subl $12,%esp
33 movl %ebx,(%esp)
34 movl 8(%ebp),%eax
35 movl %esi,4(%esp)
36 movl %edi,8(%esp)
37 pushl %ebx
38 .byte 0x0f,0xa2
39 movl %ebx,%edi
40 popl %ebx
41 movl %edx,%esi
42 movl 12(%ebp),%edx
43 movl %eax,(%edx)
44 movl 16(%ebp),%eax
45 movl %edi,(%eax)
46 movl 20(%ebp),%eax
47 movl %ecx,(%eax)
48 movl 24(%ebp),%eax
49 movl %esi,(%eax)
50 movl (%esp),%ebx
51 movl 4(%esp),%esi
52 movl 8(%esp),%edi
53 movl %ebp,%esp
54 popl %ebp
55 ret
56 .globl _gnutls_have_cpuid
57 .def _gnutls_have_cpuid; .scl 2; .type 32; .endef
58 .align 16
59 _gnutls_have_cpuid:
60 .L_gnutls_have_cpuid_begin:
61 pushfl
62 popl %eax
63 orl $2097152,%eax
64 pushl %eax
65 popfl
66 pushfl
67 popl %eax
68 andl $2097152,%eax
69 ret
70 .byte 67,80,85,73,68,32,102,111,114,32,120,56,54,0