use C's style comments to compile in old MacOSX systems. Reported by Ryan Schmidt.
[gnutls:gnutls.git] / lib / accelerated / x86 / macosx / cpuid-x86-macosx.s
1 /*
2 # Copyright (c) 2011-2012, Andy Polyakov <appro@openssl.org>
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8
9 #     * Redistributions of source code must retain copyright notices,
10 #      this list of conditions and the following disclaimer.
11 #
12 #     * Redistributions in binary form must reproduce the above
13 #      copyright notice, this list of conditions and the following
14 #      disclaimer in the documentation and/or other materials
15 #      provided with the distribution.
16 #
17 #     * Neither the name of the Andy Polyakov nor the names of its
18 #      copyright holder and contributors may be used to endorse or
19 #      promote products derived from this software without specific
20 #      prior written permission.
21 #
22 # ALTERNATIVELY, provided that this notice is retained in full, this
23 # product may be distributed under the terms of the GNU General Public
24 # License (GPL), in which case the provisions of the GPL apply INSTEAD OF
25 # those given above.
26 #
27 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
28 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 #
39 # *** This file is auto-generated ***
40 #
41 */
42 .file   "devel/perlasm/cpuid-x86.s"
43 .text
44 .globl  _gnutls_cpuid
45 .align  4
46 _gnutls_cpuid:
47 L_gnutls_cpuid_begin:
48         pushl   %ebp
49         movl    %esp,%ebp
50         subl    $12,%esp
51         movl    %ebx,(%esp)
52         movl    8(%ebp),%eax
53         movl    %esi,4(%esp)
54         movl    %edi,8(%esp)
55         pushl   %ebx
56         .byte   0x0f,0xa2
57         movl    %ebx,%edi
58         popl    %ebx
59         movl    %edx,%esi
60         movl    12(%ebp),%edx
61         movl    %eax,(%edx)
62         movl    16(%ebp),%eax
63         movl    %edi,(%eax)
64         movl    20(%ebp),%eax
65         movl    %ecx,(%eax)
66         movl    24(%ebp),%eax
67         movl    %esi,(%eax)
68         movl    (%esp),%ebx
69         movl    4(%esp),%esi
70         movl    8(%esp),%edi
71         movl    %ebp,%esp
72         popl    %ebp
73         ret
74 .globl  _gnutls_have_cpuid
75 .align  4
76 _gnutls_have_cpuid:
77 L_gnutls_have_cpuid_begin:
78         pushfl
79         popl    %eax
80         orl     $2097152,%eax
81         pushl   %eax
82         popfl
83         pushfl
84         popl    %eax
85         andl    $2097152,%eax
86         ret
87 .byte   67,80,85,73,68,32,102,111,114,32,120,56,54,0