Utilize the optimized SHA functions in Padlock HMAC.
[gnutls:gnutls.git] / lib / accelerated / x86 / macosx / cpuid-x86-64-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 .text   
43 .globl  _gnutls_cpuid
44
45 .p2align        4
46 _gnutls_cpuid:
47         pushq   %rbp
48         movq    %rsp,%rbp
49         pushq   %rbx
50         movl    %edi,-12(%rbp)
51         movq    %rsi,-24(%rbp)
52         movq    %rdx,-32(%rbp)
53         movq    %rcx,-40(%rbp)
54         movq    %r8,-48(%rbp)
55         movl    -12(%rbp),%eax
56         movl    %eax,-60(%rbp)
57         movl    -60(%rbp),%eax
58         cpuid
59         movl    %edx,-56(%rbp)
60         movl    %ecx,%esi
61         movl    %eax,-52(%rbp)
62         movq    -24(%rbp),%rax
63         movl    -52(%rbp),%edx
64         movl    %edx,(%rax)
65         movq    -32(%rbp),%rax
66         movl    %ebx,(%rax)
67         movq    -40(%rbp),%rax
68         movl    %esi,(%rax)
69         movq    -48(%rbp),%rax
70         movl    -56(%rbp),%ecx
71         movl    %ecx,(%rax)
72         popq    %rbx
73         leave
74         .byte   0xf3,0xc3
75