2 * Copyright 1987, 1988 by the Massachusetts Institute of Technology.
4 * For copying and distribution information, please see the file
7 * Part of the MIT Project Athena Kerberos encryption system,
8 * originally written 8/85 by Steve Miller.
11 #include <afsconfig.h>
12 #include <afs/param.h>
15 #include <mit-cpyright.h>
19 #include "AFS_component_version_number.c"
25 /* clear the output */
26 fprintf(stdout, "\n\tL2 = 0; R2 = 0;");
28 /* only take bits from R1, put into either L2 or R2 */
30 fprintf(stdout, "\n/* E operations */\n/* right to left */\n");
31 /* first list mapping from left to left */
33 for (i = 0; i <= 31; i++)
35 fprintf(stdout, "\n\tif (R1 & (1<<%d)) L2 |= 1<<%d;", E[i], i);
37 fprintf(stdout, "\n\n/* now from right to right */\n");
38 /* list mapping from left to right */
39 for (i = 32; i <= 47; i++)
41 fprintf(stdout, "\n\tif (R1 & (1<<%d)) R2 |= 1<<%d;", E[i],
44 fprintf(stdout, "\n");