aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/iplan2p4/iplmskbits.c
blob: e611bd293505de095350b0f49fc22ea836365bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* $XFree86$ */
/* Modified nov 94 by Martin Schaller (Martin_Schaller@maus.r.de) for use with
interleaved planes */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif

#include "iplmap.h"

unsigned short iplmask[] =
	{	0x8000,
		0x4000,
		0x2000,
		0x1000,
		0x0800,	
		0x0400,
		0x0200,
		0x0100,
		0x0080,	
		0x0040,
		0x0020,
		0x0010,
		0x0008,	
		0x0004,
		0x0002,
		0x0001
	};

unsigned short iplstarttab[] =
	{
		0x0000,
		0x7fff,
		0x3fff,
		0x1fff,
		0x0fff,
		0x07ff,
		0x03ff,
		0x01ff,
		0x00ff,
		0x007f,
		0x003f,
		0x001f,
		0x000f,
		0x0007,
		0x0003,
		0x0001
	};
			
unsigned short iplendtab[] =
	{
		0x0000,
		0x8000,
		0xc000,
		0xe000,
		0xf000,
		0xf800,
		0xfc00,
		0xfe00,
		0xff00,
		0xff80,
		0xffc0,
		0xffe0,
		0xfff0,
		0xfff8,
		0xfffc,
		0xfffe
	};

unsigned short iplstartpartial[] =
	{
		0xffff,
		0x7fff,
		0x3fff,
		0x1fff,
		0x0fff,
		0x07ff,
		0x03ff,
		0x01ff,
		0x00ff,
		0x007f,
		0x003f,
		0x001f,
		0x000f,
		0x0007,
		0x0003,
		0x0001
	};

unsigned short iplendpartial[] =
	{
		0xffff,
		0x8000,
		0xc000,
		0xe000,
		0xf000,
		0xf800,
		0xfc00,
		0xfe00,
		0xff00,
		0xff80,
		0xffc0,
		0xffe0,
		0xfff0,
		0xfff8,
		0xfffc,
		0xfffe
	};