1 /* SPDX-License-Identifier: GPL-2.0 */
3 /*---------------------------------------------------------------------------+
6 | 12 byte right shift function |
8 | Copyright (C) 1992,1994,1995 |
9 | W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
10 | Australia. E-mail billm@jacobi.maths.monash.edu.au |
13 | void shr_Xsig(Xsig *arg, unsigned nr) |
15 | Extended shift right function. |
16 | Fastest for small shifts. |
17 | Shifts the 12 byte quantity pointed to by the first arg (arg) |
18 | right by the number of bits specified by the second arg (nr). |
20 +---------------------------------------------------------------------------*/
25 SYM_FUNC_START(shr_Xsig)
31 cmpl $32,%ecx /* shrd only works for 0..31 bits */
34 /* less than 32 bits */
36 movl (%esi),%eax /* lsl */
37 movl 4(%esi),%ebx /* midl */
38 movl 8(%esi),%edx /* msl */
55 movl 4(%esi),%eax /* midl */
56 movl 8(%esi),%edx /* msl */
71 movl 8(%esi),%eax /* msl */
89 SYM_FUNC_END(shr_Xsig)