diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-12-14 11:57:02 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-12-14 12:13:40 +0100 |
commit | 691ab9fa8de99f602ad77f38c0323b00d297fd1b (patch) | |
tree | 2761151c43f7c7ca12790cb1168f882a6807d8a9 /lib/accelerated/x86/macosx/cpuid-x86_64.s | |
parent | ae89ad7815e7a022d68baa1288b517f3e0a111c5 (diff) | |
download | gnutls-691ab9fa8de99f602ad77f38c0323b00d297fd1b.tar.gz |
Added Appro's SSSE3 SHA implementations
Diffstat (limited to 'lib/accelerated/x86/macosx/cpuid-x86_64.s')
-rw-r--r-- | lib/accelerated/x86/macosx/cpuid-x86_64.s | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/accelerated/x86/macosx/cpuid-x86_64.s b/lib/accelerated/x86/macosx/cpuid-x86_64.s new file mode 100644 index 0000000000..cf8fea99a2 --- /dev/null +++ b/lib/accelerated/x86/macosx/cpuid-x86_64.s @@ -0,0 +1,58 @@ +# +# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# +# Author: Nikos Mavrogiannopoulos +# +# This file is part of GnuTLS. +# +# The GnuTLS is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public License +# as published by the Free Software Foundation; either version 2.1 of +# the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# *** This file is auto-generated *** +# +.text +.globl _gnutls_cpuid + +.p2align 4 +_gnutls_cpuid: + pushq %rbp + movq %rsp,%rbp + pushq %rbx + movl %edi,-12(%rbp) + movq %rsi,-24(%rbp) + movq %rdx,-32(%rbp) + movq %rcx,-40(%rbp) + movq %r8,-48(%rbp) + movl -12(%rbp),%eax + movl %eax,-60(%rbp) + movl -60(%rbp),%eax + cpuid + movl %edx,-56(%rbp) + movl %ecx,%esi + movl %eax,-52(%rbp) + movq -24(%rbp),%rax + movl -52(%rbp),%edx + movl %edx,(%rax) + movq -32(%rbp),%rax + movl %ebx,(%rax) + movq -40(%rbp),%rax + movl %esi,(%rax) + movq -48(%rbp),%rax + movl -56(%rbp),%ecx + movl %ecx,(%rax) + popq %rbx + leave + .byte 0xf3,0xc3 + + +.section .note.GNU-stack,"",%progbits |