2 (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* $Id: b64_sft.c,v 1.7 1994/06/24 11:15:30 ceriel Exp $ */
12 register struct flt_mantissa *e;
15 if (n > 63 || n < -63) {
21 e->flt_l_32 = e->flt_h_32;
26 e->flt_l_32 = (e->flt_l_32 >> 1) & 0x7FFFFFFF;
27 e->flt_l_32 >>= (n - 1);
28 if (e->flt_h_32 != 0) {
29 e->flt_l_32 |= (e->flt_h_32 << (32 - n)) & 0xFFFFFFFF;
30 e->flt_h_32 = (e->flt_h_32 >> 1) & 0x7FFFFFFF;
31 e->flt_h_32 >>= (n - 1);
36 e->flt_h_32 = e->flt_l_32;
41 e->flt_h_32 = (e->flt_h_32 << n) & 0xFFFFFFFF;
42 if (e->flt_l_32 != 0) {
43 long l = (e->flt_l_32 >> 1) & 0x7FFFFFFF;
44 e->flt_h_32 |= (l >> (31 - n));
45 e->flt_l_32 = (e->flt_l_32 << n) & 0xFFFFFFFF;