1 /* MD5 using sparc crypto opcodes.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Contributed by David S. Miller (davem@davemloft.net)
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <https://www.gnu.org/licenses/>. */
29 ENTRY(__md5_process_block_crop)
30 /* %o0=buffer, %o1=len, %o2=CTX */
56 ldd [%o0 + 0x08], %f10
57 ldd [%o0 + 0x10], %f12
58 ldd [%o0 + 0x18], %f14
59 ldd [%o0 + 0x20], %f16
60 ldd [%o0 + 0x28], %f18
61 ldd [%o0 + 0x30], %f20
62 ldd [%o0 + 0x38], %f22
80 alignaddr %o0, %g0, %o0
82 ldd [%o0 + 0x00], %f10
84 ldd [%o0 + 0x08], %f12
85 ldd [%o0 + 0x10], %f14
86 ldd [%o0 + 0x18], %f16
87 ldd [%o0 + 0x20], %f18
88 ldd [%o0 + 0x28], %f20
89 ldd [%o0 + 0x30], %f22
90 ldd [%o0 + 0x38], %f24
91 ldd [%o0 + 0x40], %f26
93 faligndata %f10, %f12, %f8
94 faligndata %f12, %f14, %f10
95 faligndata %f14, %f16, %f12
96 faligndata %f16, %f18, %f14
97 faligndata %f18, %f20, %f16
98 faligndata %f20, %f22, %f18
99 faligndata %f22, %f24, %f20
100 faligndata %f24, %f26, %f22
110 END(__md5_process_block_crop)