Commit | Line | Data |
---|---|---|
051b1e55 | 1 | /* |
c9686c12 KB |
2 | * Copyright (c) 1983 The Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
6 | * provided that the above copyright notice and this paragraph are | |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
051b1e55 DF |
16 | */ |
17 | ||
05862919 | 18 | #ifndef lint |
c9686c12 KB |
19 | static char sccsid[] = "@(#)partab.c 5.2 (Berkeley) %G%"; |
20 | #endif /* not lint */ | |
05862919 | 21 | |
235111bb RC |
22 | /* |
23 | * Even parity table for 0-0177 | |
24 | */ | |
05862919 | 25 | char evenpartab[] = { |
235111bb RC |
26 | 0000,0201,0202,0003,0204,0005,0006,0207, |
27 | 0210,0011,0012,0213,0014,0215,0216,0017, | |
28 | 0220,0021,0022,0223,0024,0225,0226,0027, | |
29 | 0030,0231,0232,0033,0234,0035,0036,0237, | |
30 | 0240,0041,0042,0243,0044,0245,0246,0047, | |
31 | 0050,0251,0252,0053,0254,0055,0056,0257, | |
32 | 0060,0261,0262,0063,0264,0065,0066,0267, | |
33 | 0270,0071,0072,0273,0074,0275,0276,0077, | |
34 | 0300,0101,0102,0303,0104,0305,0306,0107, | |
35 | 0110,0311,0312,0113,0314,0115,0116,0317, | |
36 | 0120,0321,0322,0123,0324,0125,0126,0327, | |
37 | 0330,0131,0132,0333,0134,0335,0336,0137, | |
38 | 0140,0341,0342,0143,0344,0145,0146,0347, | |
39 | 0350,0151,0152,0353,0154,0355,0356,0157, | |
40 | 0360,0161,0162,0363,0164,0365,0366,0167, | |
41 | 0170,0371,0372,0173,0374,0175,0176,0377, | |
05862919 | 42 | }; |