Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: encode_map.h | |
5 | * Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
6 | * 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
7 | * | |
8 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License as published by | |
12 | * the Free Software Foundation; version 2 of the License. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | * For the avoidance of doubt, and except that if any non-GPL license | |
24 | * choice is available it will apply instead, Sun elects to use only | |
25 | * the General Public License version 2 (GPLv2) at this time for any | |
26 | * software where a choice of GPL license versions is made | |
27 | * available with the language indicating that GPLv2 or any later version | |
28 | * may be used, or where a choice of which version of the GPL is applied is | |
29 | * otherwise unspecified. | |
30 | * | |
31 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
32 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
33 | * have any questions. | |
34 | * | |
35 | * | |
36 | * ========== Copyright Header End ============================================ | |
37 | */ | |
38 | // ========== Copyright Header Begin ========================================== | |
39 | // | |
40 | // OpenSPARC T2 Processor File: encode_map.h | |
41 | // Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
42 | // 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
43 | // | |
44 | // * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
45 | // | |
46 | // This program is free software; you can redistribute it and/or modify | |
47 | // it under the terms of the GNU General Public License as published by | |
48 | // the Free Software Foundation; version 2 of the License. | |
49 | // | |
50 | // This program is distributed in the hope that it will be useful, | |
51 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
52 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
53 | // GNU General Public License for more details. | |
54 | // | |
55 | // You should have received a copy of the GNU General Public License | |
56 | // along with this program; if not, write to the Free Software | |
57 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
58 | // | |
59 | // For the avoidance of doubt, and except that if any non-GPL license | |
60 | // choice is available it will apply instead, Sun elects to use only | |
61 | // the General Public License version 2 (GPLv2) at this time for any | |
62 | // software where a choice of GPL license versions is made | |
63 | // available with the language indicating that GPLv2 or any later version | |
64 | // may be used, or where a choice of which version of the GPL is applied is | |
65 | // otherwise unspecified. | |
66 | // | |
67 | // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
68 | // CA 95054 USA or visit www.sun.com if you need additional information or | |
69 | // have any questions. | |
70 | // | |
71 | // ========== Copyright Header End ============================================ | |
72 | #ifndef INC_encode_map_h__ | |
73 | #define INC_encode_map_h__ | |
74 | ||
75 | #include "systemc.h" | |
76 | #include "pcie_common/logger.hpp" | |
77 | ||
78 | ||
79 | #include<map> | |
80 | ||
81 | using namespace std; | |
82 | using namespace Logger; | |
83 | ||
84 | class encoder_map : public sc_module | |
85 | { | |
86 | public : | |
87 | map<int,int> data_encode_map; | |
88 | map<int,int> data_decode_map; | |
89 | map<int,int> spec_symbol_map; | |
90 | map<int,int> neg_spec_symbol_map; | |
91 | map<int,int> neg_data_encode_map; | |
92 | map<int,int> neg_data_decode_map; | |
93 | map<int,int> spec_symbol_decode_map; | |
94 | map<int,int> neg_spec_symbol_decode_map; | |
95 | ||
96 | ||
97 | SC_CTOR(encoder_map) | |
98 | { | |
99 | SC_METHOD(map_entry); | |
100 | SC_METHOD(decode_map_entry); | |
101 | SC_METHOD(neg_map_entry); | |
102 | SC_METHOD(neg_decode_map_entry); | |
103 | SC_METHOD(spec_symbol_map_entry); | |
104 | SC_METHOD(neg_spec_symbol_map_entry); | |
105 | SC_METHOD(decode_spec_symbol_map_entry); | |
106 | SC_METHOD(decode_neg_spec_symbol_map_entry); | |
107 | } | |
108 | ||
109 | ||
110 | void map_entry() | |
111 | { | |
112 | map<int,int>::iterator it; | |
113 | data_encode_map.insert(pair<int,int>((0x00),(0x18b))); | |
114 | data_encode_map.insert(pair<int,int>((0x01),(0x22b))); | |
115 | data_encode_map.insert(pair<int,int>((0x02),(0x12b))); | |
116 | data_encode_map.insert(pair<int,int>((0x03),(0x314))); | |
117 | data_encode_map.insert(pair<int,int>((0x04),(0x0ab))); | |
118 | data_encode_map.insert(pair<int,int>((0x05),(0x294))); | |
119 | data_encode_map.insert(pair<int,int>((0x06),(0x194))); | |
120 | data_encode_map.insert(pair<int,int>((0x07),(0x074))); | |
121 | data_encode_map.insert(pair<int,int>((0x08),(0x06b))); | |
122 | data_encode_map.insert(pair<int,int>((0x09),(0x254))); | |
123 | data_encode_map.insert(pair<int,int>((0x0a),(0x154))); | |
124 | data_encode_map.insert(pair<int,int>((0x0b),(0x344))); | |
125 | data_encode_map.insert(pair<int,int>((0x0c),(0x0d4))); | |
126 | data_encode_map.insert(pair<int,int>((0x0d),(0x2c4))); | |
127 | data_encode_map.insert(pair<int,int>((0x0e),(0x1c4))); | |
128 | data_encode_map.insert(pair<int,int>((0x0f),(0x28b))); | |
129 | data_encode_map.insert(pair<int,int>((0x10),(0x24b))); | |
130 | data_encode_map.insert(pair<int,int>((0x11),(0x234))); | |
131 | data_encode_map.insert(pair<int,int>((0x12),(0x134))); | |
132 | data_encode_map.insert(pair<int,int>((0x13),(0x324))); | |
133 | data_encode_map.insert(pair<int,int>((0x14),(0x0b4))); | |
134 | data_encode_map.insert(pair<int,int>((0x15),(0x2a4))); | |
135 | data_encode_map.insert(pair<int,int>((0x16),(0x1a4))); | |
136 | ||
137 | data_encode_map.insert(pair<int,int>((0x17),(0x05b))); | |
138 | data_encode_map.insert(pair<int,int>((0x18),(0x0cb))); | |
139 | data_encode_map.insert(pair<int,int>((0x19),(0x264))); | |
140 | data_encode_map.insert(pair<int,int>((0x1a),(0x164))); | |
141 | data_encode_map.insert(pair<int,int>((0x1b),(0x09b))); | |
142 | data_encode_map.insert(pair<int,int>((0x1c),(0x0e4))); | |
143 | data_encode_map.insert(pair<int,int>((0x1d),(0x11b))); | |
144 | data_encode_map.insert(pair<int,int>((0x1e),(0x21b))); | |
145 | data_encode_map.insert(pair<int,int>((0x1f),(0x14b))); | |
146 | data_encode_map.insert(pair<int,int>((0x20),(0x189))); | |
147 | data_encode_map.insert(pair<int,int>((0x21),(0x229))); | |
148 | data_encode_map.insert(pair<int,int>((0x22),(0x129))); | |
149 | data_encode_map.insert(pair<int,int>((0x23),(0x319))); | |
150 | data_encode_map.insert(pair<int,int>((0x24),(0x0a9))); | |
151 | data_encode_map.insert(pair<int,int>((0x25),(0x299))); | |
152 | data_encode_map.insert(pair<int,int>((0x26),(0x199))); | |
153 | data_encode_map.insert(pair<int,int>((0x27),(0x079))); | |
154 | data_encode_map.insert(pair<int,int>((0x28),(0x069))); | |
155 | data_encode_map.insert(pair<int,int>((0x29),(0x259))); | |
156 | data_encode_map.insert(pair<int,int>((0x2a),(0x159))); | |
157 | data_encode_map.insert(pair<int,int>((0x2b),(0x349))); | |
158 | data_encode_map.insert(pair<int,int>((0x2c),(0x0d9))); | |
159 | data_encode_map.insert(pair<int,int>((0x2d),(0x2c9))); | |
160 | data_encode_map.insert(pair<int,int>((0x2e),(0x1c9))); | |
161 | data_encode_map.insert(pair<int,int>((0x2f),(0x289))); | |
162 | data_encode_map.insert(pair<int,int>((0x30),(0x249))); | |
163 | data_encode_map.insert(pair<int,int>((0x31),(0x239))); | |
164 | data_encode_map.insert(pair<int,int>((0x32),(0x139))); | |
165 | data_encode_map.insert(pair<int,int>((0x33),(0x329))); | |
166 | data_encode_map.insert(pair<int,int>((0x34),(0x0b9))); | |
167 | data_encode_map.insert(pair<int,int>((0x35),(0x2a9))); | |
168 | data_encode_map.insert(pair<int,int>((0x36),(0x1a9))); | |
169 | data_encode_map.insert(pair<int,int>((0x37),(0x059))); | |
170 | data_encode_map.insert(pair<int,int>((0x38),(0x0c9))); | |
171 | data_encode_map.insert(pair<int,int>((0x39),(0x269))); | |
172 | data_encode_map.insert(pair<int,int>((0x3a),(0x169))); | |
173 | data_encode_map.insert(pair<int,int>((0x3b),(0x099))); | |
174 | data_encode_map.insert(pair<int,int>((0x3c),(0x0e9))); | |
175 | data_encode_map.insert(pair<int,int>((0x3d),(0x119))); | |
176 | data_encode_map.insert(pair<int,int>((0x3e),(0x219))); | |
177 | data_encode_map.insert(pair<int,int>((0x3f),(0x149))); | |
178 | data_encode_map.insert(pair<int,int>((0x40),(0x185))); | |
179 | data_encode_map.insert(pair<int,int>((0x41),(0x225))); | |
180 | data_encode_map.insert(pair<int,int>((0x42),(0x125))); | |
181 | data_encode_map.insert(pair<int,int>((0x43),(0x315))); | |
182 | data_encode_map.insert(pair<int,int>((0x44),(0x0a5))); | |
183 | data_encode_map.insert(pair<int,int>((0x45),(0x295))); | |
184 | data_encode_map.insert(pair<int,int>((0x46),(0x195))); | |
185 | data_encode_map.insert(pair<int,int>((0x47),(0x075))); | |
186 | data_encode_map.insert(pair<int,int>((0x48),(0x065))); | |
187 | data_encode_map.insert(pair<int,int>((0x49),(0x255))); | |
188 | data_encode_map.insert(pair<int,int>((0x4a),(0x155))); | |
189 | data_encode_map.insert(pair<int,int>((0x4b),(0x345))); | |
190 | data_encode_map.insert(pair<int,int>((0x4c),(0x0d5))); | |
191 | data_encode_map.insert(pair<int,int>((0x4d),(0x2c5))); | |
192 | data_encode_map.insert(pair<int,int>((0x4e),(0x1c5))); | |
193 | data_encode_map.insert(pair<int,int>((0x4f),(0x285))); | |
194 | data_encode_map.insert(pair<int,int>((0x50),(0x245))); | |
195 | data_encode_map.insert(pair<int,int>((0x51),(0x235))); | |
196 | data_encode_map.insert(pair<int,int>((0x52),(0x135))); | |
197 | data_encode_map.insert(pair<int,int>((0x53),(0x325))); | |
198 | data_encode_map.insert(pair<int,int>((0x54),(0x0b5))); | |
199 | data_encode_map.insert(pair<int,int>((0x55),(0x2a5))); | |
200 | data_encode_map.insert(pair<int,int>((0x56),(0x1a5))); | |
201 | data_encode_map.insert(pair<int,int>((0x57),(0x055))); | |
202 | data_encode_map.insert(pair<int,int>((0x58),(0x0c5))); | |
203 | data_encode_map.insert(pair<int,int>((0x59),(0x265))); | |
204 | data_encode_map.insert(pair<int,int>((0x5a),(0x165))); | |
205 | data_encode_map.insert(pair<int,int>((0x5b),(0x095))); | |
206 | data_encode_map.insert(pair<int,int>((0x5c),(0x0e5))); | |
207 | data_encode_map.insert(pair<int,int>((0x5d),(0x115))); | |
208 | data_encode_map.insert(pair<int,int>((0x5e),(0x215))); | |
209 | data_encode_map.insert(pair<int,int>((0x5f),(0x145))); | |
210 | data_encode_map.insert(pair<int,int>((0x60),(0x18c))); | |
211 | data_encode_map.insert(pair<int,int>((0x61),(0x22c))); | |
212 | data_encode_map.insert(pair<int,int>((0x62),(0x12c))); | |
213 | data_encode_map.insert(pair<int,int>((0x63),(0x313))); | |
214 | data_encode_map.insert(pair<int,int>((0x64),(0x0ac))); | |
215 | data_encode_map.insert(pair<int,int>((0x65),(0x293))); | |
216 | data_encode_map.insert(pair<int,int>((0x66),(0x193))); | |
217 | data_encode_map.insert(pair<int,int>((0x67),(0x073))); | |
218 | data_encode_map.insert(pair<int,int>((0x68),(0x06c))); | |
219 | data_encode_map.insert(pair<int,int>((0x69),(0x253))); | |
220 | data_encode_map.insert(pair<int,int>((0x6a),(0x153))); | |
221 | data_encode_map.insert(pair<int,int>((0x6b),(0x343))); | |
222 | data_encode_map.insert(pair<int,int>((0x6c),(0x0d3))); | |
223 | data_encode_map.insert(pair<int,int>((0x6d),(0x2c3))); | |
224 | data_encode_map.insert(pair<int,int>((0x6e),(0x1c3))); | |
225 | data_encode_map.insert(pair<int,int>((0x6f),(0x28c))); | |
226 | data_encode_map.insert(pair<int,int>((0x70),(0x24c))); | |
227 | data_encode_map.insert(pair<int,int>((0x71),(0x233))); | |
228 | data_encode_map.insert(pair<int,int>((0x72),(0x133))); | |
229 | data_encode_map.insert(pair<int,int>((0x73),(0x323))); | |
230 | data_encode_map.insert(pair<int,int>((0x74),(0x0b3))); | |
231 | data_encode_map.insert(pair<int,int>((0x75),(0x2a3))); | |
232 | data_encode_map.insert(pair<int,int>((0x76),(0x1a3))); | |
233 | data_encode_map.insert(pair<int,int>((0x77),(0x05c))); | |
234 | data_encode_map.insert(pair<int,int>((0x78),(0x0cc))); | |
235 | data_encode_map.insert(pair<int,int>((0x79),(0x263))); | |
236 | data_encode_map.insert(pair<int,int>((0x7a),(0x163))); | |
237 | data_encode_map.insert(pair<int,int>((0x7b),(0x09c))); | |
238 | data_encode_map.insert(pair<int,int>((0x7c),(0x0e3))); | |
239 | data_encode_map.insert(pair<int,int>((0x7d),(0x11c))); | |
240 | data_encode_map.insert(pair<int,int>((0x7e),(0x21c))); | |
241 | data_encode_map.insert(pair<int,int>((0x7f),(0x14c))); | |
242 | data_encode_map.insert(pair<int,int>((0x80),(0x18d))); | |
243 | data_encode_map.insert(pair<int,int>((0x81),(0x22d))); | |
244 | data_encode_map.insert(pair<int,int>((0x82),(0x12d))); | |
245 | data_encode_map.insert(pair<int,int>((0x83),(0x312))); | |
246 | data_encode_map.insert(pair<int,int>((0x84),(0x0ad))); | |
247 | data_encode_map.insert(pair<int,int>((0x85),(0x292))); | |
248 | data_encode_map.insert(pair<int,int>((0x86),(0x192))); | |
249 | data_encode_map.insert(pair<int,int>((0x87),(0x072))); | |
250 | data_encode_map.insert(pair<int,int>((0x88),(0x06d))); | |
251 | data_encode_map.insert(pair<int,int>((0x89),(0x252))); | |
252 | data_encode_map.insert(pair<int,int>((0x8a),(0x152))); | |
253 | data_encode_map.insert(pair<int,int>((0x8b),(0x342))); | |
254 | data_encode_map.insert(pair<int,int>((0x8c),(0x0d2))); | |
255 | data_encode_map.insert(pair<int,int>((0x8d),(0x2c2))); | |
256 | data_encode_map.insert(pair<int,int>((0x8e),(0x1c2))); | |
257 | data_encode_map.insert(pair<int,int>((0x8f),(0x28d))); | |
258 | data_encode_map.insert(pair<int,int>((0x90),(0x24d))); | |
259 | data_encode_map.insert(pair<int,int>((0x91),(0x232))); | |
260 | data_encode_map.insert(pair<int,int>((0x92),(0x132))); | |
261 | data_encode_map.insert(pair<int,int>((0x93),(0x322))); | |
262 | data_encode_map.insert(pair<int,int>((0x94),(0x0b2))); | |
263 | data_encode_map.insert(pair<int,int>((0x95),(0x2a2))); | |
264 | data_encode_map.insert(pair<int,int>((0x96),(0x1a2))); | |
265 | data_encode_map.insert(pair<int,int>((0x97),(0x05d))); | |
266 | data_encode_map.insert(pair<int,int>((0x98),(0x0cd))); | |
267 | data_encode_map.insert(pair<int,int>((0x99),(0x262))); | |
268 | data_encode_map.insert(pair<int,int>((0x9a),(0x162))); | |
269 | data_encode_map.insert(pair<int,int>((0x9b),(0x09d))); | |
270 | data_encode_map.insert(pair<int,int>((0x9c),(0x0e2))); | |
271 | data_encode_map.insert(pair<int,int>((0x9d),(0x11d))); | |
272 | data_encode_map.insert(pair<int,int>((0x9e),(0x21d))); | |
273 | data_encode_map.insert(pair<int,int>((0x9f),(0x14d))); | |
274 | data_encode_map.insert(pair<int,int>((0xa0),(0x18a))); | |
275 | data_encode_map.insert(pair<int,int>((0xa1),(0x22a))); | |
276 | data_encode_map.insert(pair<int,int>((0xa2),(0x12a))); | |
277 | data_encode_map.insert(pair<int,int>((0xa3),(0x31a))); | |
278 | data_encode_map.insert(pair<int,int>((0xa4),(0x0aa))); | |
279 | data_encode_map.insert(pair<int,int>((0xa5),(0x29a))); | |
280 | data_encode_map.insert(pair<int,int>((0xa6),(0x19a))); | |
281 | data_encode_map.insert(pair<int,int>((0xa7),(0x07a))); | |
282 | data_encode_map.insert(pair<int,int>((0xa8),(0x06a))); | |
283 | data_encode_map.insert(pair<int,int>((0xa9),(0x25a))); | |
284 | data_encode_map.insert(pair<int,int>((0xaa),(0x15a))); | |
285 | data_encode_map.insert(pair<int,int>((0xab),(0x34a))); | |
286 | data_encode_map.insert(pair<int,int>((0xac),(0x0da))); | |
287 | data_encode_map.insert(pair<int,int>((0xad),(0x2ca))); | |
288 | data_encode_map.insert(pair<int,int>((0xae),(0x1ca))); | |
289 | data_encode_map.insert(pair<int,int>((0xaf),(0x28a))); | |
290 | data_encode_map.insert(pair<int,int>((0xb0),(0x24a))); | |
291 | data_encode_map.insert(pair<int,int>((0xb1),(0x23a))); | |
292 | data_encode_map.insert(pair<int,int>((0xb2),(0x13a))); | |
293 | data_encode_map.insert(pair<int,int>((0xb3),(0x32a))); | |
294 | data_encode_map.insert(pair<int,int>((0xb4),(0x0ba))); | |
295 | data_encode_map.insert(pair<int,int>((0xb5),(0x2aa))); | |
296 | data_encode_map.insert(pair<int,int>((0xb6),(0x1aa))); | |
297 | data_encode_map.insert(pair<int,int>((0xb7),(0x05a))); | |
298 | data_encode_map.insert(pair<int,int>((0xb8),(0x0ca))); | |
299 | data_encode_map.insert(pair<int,int>((0xb9),(0x26a))); | |
300 | data_encode_map.insert(pair<int,int>((0xba),(0x16a))); | |
301 | data_encode_map.insert(pair<int,int>((0xbb),(0x09a))); | |
302 | data_encode_map.insert(pair<int,int>((0xbc),(0x0ea))); | |
303 | data_encode_map.insert(pair<int,int>((0xbd),(0x11a))); | |
304 | data_encode_map.insert(pair<int,int>((0xbe),(0x21a))); | |
305 | data_encode_map.insert(pair<int,int>((0xbf),(0x14a))); | |
306 | data_encode_map.insert(pair<int,int>((0xc0),(0x186))); | |
307 | data_encode_map.insert(pair<int,int>((0xc1),(0x226))); | |
308 | data_encode_map.insert(pair<int,int>((0xc2),(0x126))); | |
309 | data_encode_map.insert(pair<int,int>((0xc3),(0x316))); | |
310 | data_encode_map.insert(pair<int,int>((0xc4),(0x0a6))); | |
311 | data_encode_map.insert(pair<int,int>((0xc5),(0x296))); | |
312 | data_encode_map.insert(pair<int,int>((0xc6),(0x196))); | |
313 | data_encode_map.insert(pair<int,int>((0xc7),(0x076))); | |
314 | data_encode_map.insert(pair<int,int>((0xc8),(0x066))); | |
315 | data_encode_map.insert(pair<int,int>((0xc9),(0x256))); | |
316 | data_encode_map.insert(pair<int,int>((0xca),(0x156))); | |
317 | data_encode_map.insert(pair<int,int>((0xcb),(0x346))); | |
318 | data_encode_map.insert(pair<int,int>((0xcc),(0x0d6))); | |
319 | data_encode_map.insert(pair<int,int>((0xcd),(0x2c6))); | |
320 | data_encode_map.insert(pair<int,int>((0xce),(0x1c6))); | |
321 | data_encode_map.insert(pair<int,int>((0xcf),(0x286))); | |
322 | data_encode_map.insert(pair<int,int>((0xd0),(0x246))); | |
323 | data_encode_map.insert(pair<int,int>((0xd1),(0x236))); | |
324 | data_encode_map.insert(pair<int,int>((0xd2),(0x136))); | |
325 | data_encode_map.insert(pair<int,int>((0xd3),(0x326))); | |
326 | data_encode_map.insert(pair<int,int>((0xd4),(0x0b6))); | |
327 | data_encode_map.insert(pair<int,int>((0xd5),(0x2a6))); | |
328 | data_encode_map.insert(pair<int,int>((0xd6),(0x1a6))); | |
329 | data_encode_map.insert(pair<int,int>((0xd7),(0x056))); | |
330 | data_encode_map.insert(pair<int,int>((0xd8),(0x0c6))); | |
331 | data_encode_map.insert(pair<int,int>((0xd9),(0x266))); | |
332 | data_encode_map.insert(pair<int,int>((0xda),(0x166))); | |
333 | data_encode_map.insert(pair<int,int>((0xdb),(0x096))); | |
334 | data_encode_map.insert(pair<int,int>((0xdc),(0x0e6))); | |
335 | data_encode_map.insert(pair<int,int>((0xdd),(0x116))); | |
336 | data_encode_map.insert(pair<int,int>((0xde),(0x216))); | |
337 | data_encode_map.insert(pair<int,int>((0xdf),(0x146))); | |
338 | data_encode_map.insert(pair<int,int>((0xe0),(0x18e))); | |
339 | data_encode_map.insert(pair<int,int>((0xe1),(0x22e))); | |
340 | data_encode_map.insert(pair<int,int>((0xe2),(0x12e))); | |
341 | data_encode_map.insert(pair<int,int>((0xe3),(0x311))); | |
342 | data_encode_map.insert(pair<int,int>((0xe4),(0x0ae))); | |
343 | data_encode_map.insert(pair<int,int>((0xe5),(0x291))); | |
344 | data_encode_map.insert(pair<int,int>((0xe6),(0x191))); | |
345 | data_encode_map.insert(pair<int,int>((0xe7),(0x071))); | |
346 | data_encode_map.insert(pair<int,int>((0xe8),(0x06e))); | |
347 | data_encode_map.insert(pair<int,int>((0xe9),(0x251))); | |
348 | data_encode_map.insert(pair<int,int>((0xea),(0x151))); | |
349 | data_encode_map.insert(pair<int,int>((0xeb),(0x348))); | |
350 | data_encode_map.insert(pair<int,int>((0xec),(0x0d1))); | |
351 | data_encode_map.insert(pair<int,int>((0xed),(0x2c8))); | |
352 | data_encode_map.insert(pair<int,int>((0xee),(0x1c8))); | |
353 | data_encode_map.insert(pair<int,int>((0xef),(0x28e))); | |
354 | data_encode_map.insert(pair<int,int>((0xf0),(0x24e))); | |
355 | data_encode_map.insert(pair<int,int>((0xf1),(0x231))); | |
356 | data_encode_map.insert(pair<int,int>((0xf2),(0x131))); | |
357 | data_encode_map.insert(pair<int,int>((0xf3),(0x321))); | |
358 | data_encode_map.insert(pair<int,int>((0xf4),(0x0b1))); | |
359 | data_encode_map.insert(pair<int,int>((0xf5),(0x2a1))); | |
360 | data_encode_map.insert(pair<int,int>((0xf6),(0x1a1))); | |
361 | data_encode_map.insert(pair<int,int>((0xf7),(0x05e))); | |
362 | data_encode_map.insert(pair<int,int>((0xf8),(0x0ce))); | |
363 | data_encode_map.insert(pair<int,int>((0xf9),(0x261))); | |
364 | data_encode_map.insert(pair<int,int>((0xfa),(0x161))); | |
365 | data_encode_map.insert(pair<int,int>((0xfb),(0x09e))); | |
366 | data_encode_map.insert(pair<int,int>((0xfc),(0x0e1))); | |
367 | data_encode_map.insert(pair<int,int>((0xfd),(0x11e))); | |
368 | data_encode_map.insert(pair<int,int>((0xfe),(0x21e))); | |
369 | data_encode_map.insert(pair<int,int>((0xff),(0x14e))); | |
370 | } | |
371 | ||
372 | void neg_map_entry() | |
373 | { | |
374 | neg_data_encode_map.insert(pair<int,int>((0x00),(0x274))); | |
375 | neg_data_encode_map.insert(pair<int,int>((0x01),(0x1d4))); | |
376 | neg_data_encode_map.insert(pair<int,int>((0x02),(0x2d4))); | |
377 | neg_data_encode_map.insert(pair<int,int>((0x03),(0x31b))); | |
378 | neg_data_encode_map.insert(pair<int,int>((0x04),(0x354))); | |
379 | neg_data_encode_map.insert(pair<int,int>((0x05),(0x29b))); | |
380 | neg_data_encode_map.insert(pair<int,int>((0x06),(0x19b))); | |
381 | neg_data_encode_map.insert(pair<int,int>((0x07),(0x38b))); | |
382 | neg_data_encode_map.insert(pair<int,int>((0x08),(0x394))); | |
383 | neg_data_encode_map.insert(pair<int,int>((0x09),(0x25b))); | |
384 | neg_data_encode_map.insert(pair<int,int>((0x0a),(0x15b))); | |
385 | neg_data_encode_map.insert(pair<int,int>((0x0b),(0x34b))); | |
386 | neg_data_encode_map.insert(pair<int,int>((0x0c),(0x0db))); | |
387 | neg_data_encode_map.insert(pair<int,int>((0x0d),(0x2cb))); | |
388 | neg_data_encode_map.insert(pair<int,int>((0x0e),(0x1cb))); | |
389 | neg_data_encode_map.insert(pair<int,int>((0x0f),(0x174))); | |
390 | neg_data_encode_map.insert(pair<int,int>((0x10),(0x1b4))); | |
391 | neg_data_encode_map.insert(pair<int,int>((0x11),(0x23b))); | |
392 | neg_data_encode_map.insert(pair<int,int>((0x12),(0x13b))); | |
393 | neg_data_encode_map.insert(pair<int,int>((0x13),(0x32b))); | |
394 | neg_data_encode_map.insert(pair<int,int>((0x14),(0x0bb))); | |
395 | neg_data_encode_map.insert(pair<int,int>((0x15),(0x2ab))); | |
396 | neg_data_encode_map.insert(pair<int,int>((0x16),(0x1ab))); | |
397 | ||
398 | neg_data_encode_map.insert(pair<int,int>((0x17),(0x3a4))); | |
399 | neg_data_encode_map.insert(pair<int,int>((0x18),(0x334))); | |
400 | neg_data_encode_map.insert(pair<int,int>((0x19),(0x26b))); | |
401 | neg_data_encode_map.insert(pair<int,int>((0x1a),(0x16b))); | |
402 | neg_data_encode_map.insert(pair<int,int>((0x1b),(0x364))); | |
403 | neg_data_encode_map.insert(pair<int,int>((0x1c),(0x0eb))); | |
404 | neg_data_encode_map.insert(pair<int,int>((0x1d),(0x2e4))); | |
405 | neg_data_encode_map.insert(pair<int,int>((0x1e),(0x1e4))); | |
406 | neg_data_encode_map.insert(pair<int,int>((0x1f),(0x2b4))); | |
407 | neg_data_encode_map.insert(pair<int,int>((0x20),(0x279))); | |
408 | neg_data_encode_map.insert(pair<int,int>((0x21),(0x1d9))); | |
409 | neg_data_encode_map.insert(pair<int,int>((0x22),(0x2d9))); | |
410 | neg_data_encode_map.insert(pair<int,int>((0x23),(0x319))); | |
411 | neg_data_encode_map.insert(pair<int,int>((0x24),(0x359))); | |
412 | neg_data_encode_map.insert(pair<int,int>((0x25),(0x299))); | |
413 | neg_data_encode_map.insert(pair<int,int>((0x26),(0x199))); | |
414 | neg_data_encode_map.insert(pair<int,int>((0x27),(0x389))); | |
415 | neg_data_encode_map.insert(pair<int,int>((0x28),(0x399))); | |
416 | neg_data_encode_map.insert(pair<int,int>((0x29),(0x259))); | |
417 | neg_data_encode_map.insert(pair<int,int>((0x2a),(0x159))); | |
418 | neg_data_encode_map.insert(pair<int,int>((0x2b),(0x349))); | |
419 | neg_data_encode_map.insert(pair<int,int>((0x2c),(0x0d9))); | |
420 | neg_data_encode_map.insert(pair<int,int>((0x2d),(0x2c9))); | |
421 | neg_data_encode_map.insert(pair<int,int>((0x2e),(0x1c9))); | |
422 | neg_data_encode_map.insert(pair<int,int>((0x2f),(0x179))); | |
423 | neg_data_encode_map.insert(pair<int,int>((0x30),(0x1b9))); | |
424 | neg_data_encode_map.insert(pair<int,int>((0x31),(0x239))); | |
425 | neg_data_encode_map.insert(pair<int,int>((0x32),(0x139))); | |
426 | neg_data_encode_map.insert(pair<int,int>((0x33),(0x329))); | |
427 | neg_data_encode_map.insert(pair<int,int>((0x34),(0x0b9))); | |
428 | neg_data_encode_map.insert(pair<int,int>((0x35),(0x2a9))); | |
429 | neg_data_encode_map.insert(pair<int,int>((0x36),(0x1a9))); | |
430 | neg_data_encode_map.insert(pair<int,int>((0x37),(0x3a9))); | |
431 | neg_data_encode_map.insert(pair<int,int>((0x38),(0x339))); | |
432 | neg_data_encode_map.insert(pair<int,int>((0x39),(0x269))); | |
433 | neg_data_encode_map.insert(pair<int,int>((0x3a),(0x169))); | |
434 | neg_data_encode_map.insert(pair<int,int>((0x3b),(0x369))); | |
435 | neg_data_encode_map.insert(pair<int,int>((0x3c),(0x0e9))); | |
436 | neg_data_encode_map.insert(pair<int,int>((0x3d),(0x2e9))); | |
437 | neg_data_encode_map.insert(pair<int,int>((0x3e),(0x1e9))); | |
438 | neg_data_encode_map.insert(pair<int,int>((0x3f),(0x2b9))); | |
439 | neg_data_encode_map.insert(pair<int,int>((0x40),(0x275))); | |
440 | neg_data_encode_map.insert(pair<int,int>((0x41),(0x1d5))); | |
441 | neg_data_encode_map.insert(pair<int,int>((0x42),(0x2d5))); | |
442 | neg_data_encode_map.insert(pair<int,int>((0x43),(0x315))); | |
443 | neg_data_encode_map.insert(pair<int,int>((0x44),(0x355))); | |
444 | neg_data_encode_map.insert(pair<int,int>((0x45),(0x295))); | |
445 | neg_data_encode_map.insert(pair<int,int>((0x46),(0x195))); | |
446 | neg_data_encode_map.insert(pair<int,int>((0x47),(0x385))); | |
447 | neg_data_encode_map.insert(pair<int,int>((0x48),(0x395))); | |
448 | neg_data_encode_map.insert(pair<int,int>((0x49),(0x255))); | |
449 | neg_data_encode_map.insert(pair<int,int>((0x4a),(0x155))); | |
450 | neg_data_encode_map.insert(pair<int,int>((0x4b),(0x345))); | |
451 | neg_data_encode_map.insert(pair<int,int>((0x4c),(0x0d5))); | |
452 | neg_data_encode_map.insert(pair<int,int>((0x4d),(0x2c5))); | |
453 | neg_data_encode_map.insert(pair<int,int>((0x4e),(0x1c5))); | |
454 | neg_data_encode_map.insert(pair<int,int>((0x4f),(0x175))); | |
455 | neg_data_encode_map.insert(pair<int,int>((0x50),(0x1b5))); | |
456 | neg_data_encode_map.insert(pair<int,int>((0x51),(0x235))); | |
457 | neg_data_encode_map.insert(pair<int,int>((0x52),(0x135))); | |
458 | neg_data_encode_map.insert(pair<int,int>((0x53),(0x325))); | |
459 | neg_data_encode_map.insert(pair<int,int>((0x54),(0x0b5))); | |
460 | neg_data_encode_map.insert(pair<int,int>((0x55),(0x2a5))); | |
461 | neg_data_encode_map.insert(pair<int,int>((0x56),(0x1a5))); | |
462 | neg_data_encode_map.insert(pair<int,int>((0x57),(0x3a5))); | |
463 | neg_data_encode_map.insert(pair<int,int>((0x58),(0x335))); | |
464 | neg_data_encode_map.insert(pair<int,int>((0x59),(0x265))); | |
465 | neg_data_encode_map.insert(pair<int,int>((0x5a),(0x165))); | |
466 | neg_data_encode_map.insert(pair<int,int>((0x5b),(0x365))); | |
467 | neg_data_encode_map.insert(pair<int,int>((0x5c),(0x0e5))); | |
468 | neg_data_encode_map.insert(pair<int,int>((0x5d),(0x2e5))); | |
469 | neg_data_encode_map.insert(pair<int,int>((0x5e),(0x1e5))); | |
470 | neg_data_encode_map.insert(pair<int,int>((0x5f),(0x2b5))); | |
471 | neg_data_encode_map.insert(pair<int,int>((0x60),(0x273))); | |
472 | neg_data_encode_map.insert(pair<int,int>((0x61),(0x1d3))); | |
473 | neg_data_encode_map.insert(pair<int,int>((0x62),(0x2d3))); | |
474 | neg_data_encode_map.insert(pair<int,int>((0x63),(0x31c))); | |
475 | neg_data_encode_map.insert(pair<int,int>((0x64),(0x353))); | |
476 | neg_data_encode_map.insert(pair<int,int>((0x65),(0x29c))); | |
477 | neg_data_encode_map.insert(pair<int,int>((0x66),(0x19c))); | |
478 | neg_data_encode_map.insert(pair<int,int>((0x67),(0x38c))); | |
479 | neg_data_encode_map.insert(pair<int,int>((0x68),(0x393))); | |
480 | neg_data_encode_map.insert(pair<int,int>((0x69),(0x25c))); | |
481 | neg_data_encode_map.insert(pair<int,int>((0x6a),(0x15c))); | |
482 | neg_data_encode_map.insert(pair<int,int>((0x6b),(0x34c))); | |
483 | neg_data_encode_map.insert(pair<int,int>((0x6c),(0x0dc))); | |
484 | neg_data_encode_map.insert(pair<int,int>((0x6d),(0x2cc))); | |
485 | neg_data_encode_map.insert(pair<int,int>((0x6e),(0x1cc))); | |
486 | neg_data_encode_map.insert(pair<int,int>((0x6f),(0x173))); | |
487 | neg_data_encode_map.insert(pair<int,int>((0x70),(0x1b3))); | |
488 | neg_data_encode_map.insert(pair<int,int>((0x71),(0x23c))); | |
489 | neg_data_encode_map.insert(pair<int,int>((0x72),(0x13c))); | |
490 | neg_data_encode_map.insert(pair<int,int>((0x73),(0x32c))); | |
491 | neg_data_encode_map.insert(pair<int,int>((0x74),(0x0bc))); | |
492 | neg_data_encode_map.insert(pair<int,int>((0x75),(0x2ac))); | |
493 | neg_data_encode_map.insert(pair<int,int>((0x76),(0x1ac))); | |
494 | neg_data_encode_map.insert(pair<int,int>((0x77),(0x3a3))); | |
495 | neg_data_encode_map.insert(pair<int,int>((0x78),(0x333))); | |
496 | neg_data_encode_map.insert(pair<int,int>((0x79),(0x26c))); | |
497 | neg_data_encode_map.insert(pair<int,int>((0x7a),(0x16c))); | |
498 | neg_data_encode_map.insert(pair<int,int>((0x7b),(0x363))); | |
499 | neg_data_encode_map.insert(pair<int,int>((0x7c),(0x0ec))); | |
500 | neg_data_encode_map.insert(pair<int,int>((0x7d),(0x2e3))); | |
501 | neg_data_encode_map.insert(pair<int,int>((0x7e),(0x1e3))); | |
502 | neg_data_encode_map.insert(pair<int,int>((0x7f),(0x2b3))); | |
503 | neg_data_encode_map.insert(pair<int,int>((0x80),(0x272))); | |
504 | neg_data_encode_map.insert(pair<int,int>((0x81),(0x1d2))); | |
505 | neg_data_encode_map.insert(pair<int,int>((0x82),(0x2d2))); | |
506 | neg_data_encode_map.insert(pair<int,int>((0x83),(0x31d))); | |
507 | neg_data_encode_map.insert(pair<int,int>((0x84),(0x352))); | |
508 | neg_data_encode_map.insert(pair<int,int>((0x85),(0x29d))); | |
509 | neg_data_encode_map.insert(pair<int,int>((0x86),(0x19d))); | |
510 | neg_data_encode_map.insert(pair<int,int>((0x87),(0x38d))); | |
511 | neg_data_encode_map.insert(pair<int,int>((0x88),(0x392))); | |
512 | neg_data_encode_map.insert(pair<int,int>((0x89),(0x25d))); | |
513 | neg_data_encode_map.insert(pair<int,int>((0x8a),(0x15d))); | |
514 | neg_data_encode_map.insert(pair<int,int>((0x8b),(0x34d))); | |
515 | neg_data_encode_map.insert(pair<int,int>((0x8c),(0x0dd))); | |
516 | neg_data_encode_map.insert(pair<int,int>((0x8d),(0x2cd))); | |
517 | neg_data_encode_map.insert(pair<int,int>((0x8e),(0x1cd))); | |
518 | neg_data_encode_map.insert(pair<int,int>((0x8f),(0x172))); | |
519 | neg_data_encode_map.insert(pair<int,int>((0x90),(0x1b2))); | |
520 | neg_data_encode_map.insert(pair<int,int>((0x91),(0x23d))); | |
521 | neg_data_encode_map.insert(pair<int,int>((0x92),(0x13d))); | |
522 | neg_data_encode_map.insert(pair<int,int>((0x93),(0x32d))); | |
523 | neg_data_encode_map.insert(pair<int,int>((0x94),(0x0bd))); | |
524 | neg_data_encode_map.insert(pair<int,int>((0x95),(0x2ad))); | |
525 | neg_data_encode_map.insert(pair<int,int>((0x96),(0x1ad))); | |
526 | neg_data_encode_map.insert(pair<int,int>((0x97),(0x3a2))); | |
527 | neg_data_encode_map.insert(pair<int,int>((0x98),(0x332))); | |
528 | neg_data_encode_map.insert(pair<int,int>((0x99),(0x26d))); | |
529 | neg_data_encode_map.insert(pair<int,int>((0x9a),(0x16d))); | |
530 | neg_data_encode_map.insert(pair<int,int>((0x9b),(0x362))); | |
531 | neg_data_encode_map.insert(pair<int,int>((0x9c),(0x0ed))); | |
532 | neg_data_encode_map.insert(pair<int,int>((0x9d),(0x2e2))); | |
533 | neg_data_encode_map.insert(pair<int,int>((0x9e),(0x1e2))); | |
534 | neg_data_encode_map.insert(pair<int,int>((0x9f),(0x2b2))); | |
535 | neg_data_encode_map.insert(pair<int,int>((0xa0),(0x27a))); | |
536 | neg_data_encode_map.insert(pair<int,int>((0xa1),(0x1da))); | |
537 | neg_data_encode_map.insert(pair<int,int>((0xa2),(0x2da))); | |
538 | neg_data_encode_map.insert(pair<int,int>((0xa3),(0x31a))); | |
539 | neg_data_encode_map.insert(pair<int,int>((0xa4),(0x35a))); | |
540 | neg_data_encode_map.insert(pair<int,int>((0xa5),(0x29a))); | |
541 | neg_data_encode_map.insert(pair<int,int>((0xa6),(0x19a))); | |
542 | neg_data_encode_map.insert(pair<int,int>((0xa7),(0x38a))); | |
543 | neg_data_encode_map.insert(pair<int,int>((0xa8),(0x39a))); | |
544 | neg_data_encode_map.insert(pair<int,int>((0xa9),(0x25a))); | |
545 | neg_data_encode_map.insert(pair<int,int>((0xaa),(0x15a))); | |
546 | neg_data_encode_map.insert(pair<int,int>((0xab),(0x34a))); | |
547 | neg_data_encode_map.insert(pair<int,int>((0xac),(0x0da))); | |
548 | neg_data_encode_map.insert(pair<int,int>((0xad),(0x2ca))); | |
549 | neg_data_encode_map.insert(pair<int,int>((0xae),(0x1ca))); | |
550 | neg_data_encode_map.insert(pair<int,int>((0xaf),(0x17a))); | |
551 | neg_data_encode_map.insert(pair<int,int>((0xb0),(0x1ba))); | |
552 | neg_data_encode_map.insert(pair<int,int>((0xb1),(0x23a))); | |
553 | neg_data_encode_map.insert(pair<int,int>((0xb2),(0x13a))); | |
554 | neg_data_encode_map.insert(pair<int,int>((0xb3),(0x32a))); | |
555 | neg_data_encode_map.insert(pair<int,int>((0xb4),(0x0ba))); | |
556 | neg_data_encode_map.insert(pair<int,int>((0xb5),(0x2aa))); | |
557 | neg_data_encode_map.insert(pair<int,int>((0xb6),(0x1aa))); | |
558 | neg_data_encode_map.insert(pair<int,int>((0xb7),(0x3aa))); | |
559 | neg_data_encode_map.insert(pair<int,int>((0xb8),(0x33a))); | |
560 | neg_data_encode_map.insert(pair<int,int>((0xb9),(0x26a))); | |
561 | neg_data_encode_map.insert(pair<int,int>((0xba),(0x16a))); | |
562 | neg_data_encode_map.insert(pair<int,int>((0xbb),(0x36a))); | |
563 | neg_data_encode_map.insert(pair<int,int>((0xbc),(0x0ea))); | |
564 | neg_data_encode_map.insert(pair<int,int>((0xbd),(0x2ea))); | |
565 | neg_data_encode_map.insert(pair<int,int>((0xbe),(0x1ea))); | |
566 | neg_data_encode_map.insert(pair<int,int>((0xbf),(0x2ba))); | |
567 | neg_data_encode_map.insert(pair<int,int>((0xc0),(0x276))); | |
568 | neg_data_encode_map.insert(pair<int,int>((0xc1),(0x1d6))); | |
569 | neg_data_encode_map.insert(pair<int,int>((0xc2),(0x2d6))); | |
570 | neg_data_encode_map.insert(pair<int,int>((0xc3),(0x316))); | |
571 | neg_data_encode_map.insert(pair<int,int>((0xc4),(0x356))); | |
572 | neg_data_encode_map.insert(pair<int,int>((0xc5),(0x296))); | |
573 | neg_data_encode_map.insert(pair<int,int>((0xc6),(0x196))); | |
574 | neg_data_encode_map.insert(pair<int,int>((0xc7),(0x386))); | |
575 | neg_data_encode_map.insert(pair<int,int>((0xc8),(0x396))); | |
576 | neg_data_encode_map.insert(pair<int,int>((0xc9),(0x256))); | |
577 | neg_data_encode_map.insert(pair<int,int>((0xca),(0x156))); | |
578 | neg_data_encode_map.insert(pair<int,int>((0xcb),(0x346))); | |
579 | neg_data_encode_map.insert(pair<int,int>((0xcc),(0x0d6))); | |
580 | neg_data_encode_map.insert(pair<int,int>((0xcd),(0x2c6))); | |
581 | neg_data_encode_map.insert(pair<int,int>((0xce),(0x1c6))); | |
582 | neg_data_encode_map.insert(pair<int,int>((0xcf),(0x176))); | |
583 | neg_data_encode_map.insert(pair<int,int>((0xd0),(0x1b6))); | |
584 | neg_data_encode_map.insert(pair<int,int>((0xd1),(0x236))); | |
585 | neg_data_encode_map.insert(pair<int,int>((0xd2),(0x136))); | |
586 | neg_data_encode_map.insert(pair<int,int>((0xd3),(0x326))); | |
587 | neg_data_encode_map.insert(pair<int,int>((0xd4),(0x0b6))); | |
588 | neg_data_encode_map.insert(pair<int,int>((0xd5),(0x2a6))); | |
589 | neg_data_encode_map.insert(pair<int,int>((0xd6),(0x1a6))); | |
590 | neg_data_encode_map.insert(pair<int,int>((0xd7),(0x3a6))); | |
591 | neg_data_encode_map.insert(pair<int,int>((0xd8),(0x336))); | |
592 | neg_data_encode_map.insert(pair<int,int>((0xd9),(0x266))); | |
593 | neg_data_encode_map.insert(pair<int,int>((0xda),(0x166))); | |
594 | neg_data_encode_map.insert(pair<int,int>((0xdb),(0x366))); | |
595 | neg_data_encode_map.insert(pair<int,int>((0xdc),(0x0e6))); | |
596 | neg_data_encode_map.insert(pair<int,int>((0xdd),(0x2e6))); | |
597 | neg_data_encode_map.insert(pair<int,int>((0xde),(0x1e6))); | |
598 | neg_data_encode_map.insert(pair<int,int>((0xdf),(0x2b6))); | |
599 | neg_data_encode_map.insert(pair<int,int>((0xe0),(0x271))); | |
600 | neg_data_encode_map.insert(pair<int,int>((0xe1),(0x1d1))); | |
601 | neg_data_encode_map.insert(pair<int,int>((0xe2),(0x2d1))); | |
602 | neg_data_encode_map.insert(pair<int,int>((0xe3),(0x31e))); | |
603 | neg_data_encode_map.insert(pair<int,int>((0xe4),(0x351))); | |
604 | neg_data_encode_map.insert(pair<int,int>((0xe5),(0x29e))); | |
605 | neg_data_encode_map.insert(pair<int,int>((0xe6),(0x19e))); | |
606 | neg_data_encode_map.insert(pair<int,int>((0xe7),(0x38e))); | |
607 | neg_data_encode_map.insert(pair<int,int>((0xe8),(0x391))); | |
608 | neg_data_encode_map.insert(pair<int,int>((0xe9),(0x25e))); | |
609 | neg_data_encode_map.insert(pair<int,int>((0xea),(0x15e))); | |
610 | neg_data_encode_map.insert(pair<int,int>((0xeb),(0x34e))); | |
611 | neg_data_encode_map.insert(pair<int,int>((0xec),(0x0de))); | |
612 | neg_data_encode_map.insert(pair<int,int>((0xed),(0x2ce))); | |
613 | neg_data_encode_map.insert(pair<int,int>((0xee),(0x1ce))); | |
614 | neg_data_encode_map.insert(pair<int,int>((0xef),(0x171))); | |
615 | neg_data_encode_map.insert(pair<int,int>((0xf0),(0x1b1))); | |
616 | neg_data_encode_map.insert(pair<int,int>((0xf1),(0x237))); | |
617 | neg_data_encode_map.insert(pair<int,int>((0xf2),(0x137))); | |
618 | neg_data_encode_map.insert(pair<int,int>((0xf3),(0x32e))); | |
619 | neg_data_encode_map.insert(pair<int,int>((0xf4),(0x0b7))); | |
620 | neg_data_encode_map.insert(pair<int,int>((0xf5),(0x2ae))); | |
621 | neg_data_encode_map.insert(pair<int,int>((0xf6),(0x1ae))); | |
622 | neg_data_encode_map.insert(pair<int,int>((0xf7),(0x3a1))); | |
623 | neg_data_encode_map.insert(pair<int,int>((0xf8),(0x331))); | |
624 | neg_data_encode_map.insert(pair<int,int>((0xf9),(0x26e))); | |
625 | neg_data_encode_map.insert(pair<int,int>((0xfa),(0x16e))); | |
626 | neg_data_encode_map.insert(pair<int,int>((0xfb),(0x361))); | |
627 | neg_data_encode_map.insert(pair<int,int>((0xfc),(0x0ee))); | |
628 | neg_data_encode_map.insert(pair<int,int>((0xfd),(0x2e1))); | |
629 | neg_data_encode_map.insert(pair<int,int>((0xfe),(0x1e1))); | |
630 | neg_data_encode_map.insert(pair<int,int>((0xff),(0x2b1))); | |
631 | ||
632 | } | |
633 | ||
634 | void decode_map_entry() | |
635 | { | |
636 | map<int,int>::iterator it; | |
637 | for(it=data_encode_map.begin(); it != data_encode_map.end(); it++) | |
638 | { | |
639 | data_decode_map[it->second] = it->first; | |
640 | } | |
641 | } | |
642 | ||
643 | void neg_decode_map_entry() | |
644 | { | |
645 | map<int,int>::iterator it; | |
646 | for(it=neg_data_encode_map.begin(); it != neg_data_encode_map.end(); it++) | |
647 | { | |
648 | neg_data_decode_map[it->second] = it->first; | |
649 | } | |
650 | } | |
651 | ||
652 | void spec_symbol_map_entry() | |
653 | { | |
654 | spec_symbol_map.insert(pair<int,int>((0x1c),(0x30b))); | |
655 | spec_symbol_map.insert(pair<int,int>((0x3c),(0x306))); | |
656 | spec_symbol_map.insert(pair<int,int>((0x5c),(0x30a))); | |
657 | spec_symbol_map.insert(pair<int,int>((0x7c),(0x30c))); | |
658 | spec_symbol_map.insert(pair<int,int>((0x9c),(0x30d))); | |
659 | spec_symbol_map.insert(pair<int,int>((0xbc),(0x305))); | |
660 | spec_symbol_map.insert(pair<int,int>((0xdc),(0x309))); | |
661 | spec_symbol_map.insert(pair<int,int>((0xfc),(0x307))); | |
662 | spec_symbol_map.insert(pair<int,int>((0xf7),(0x057))); | |
663 | spec_symbol_map.insert(pair<int,int>((0xfb),(0x097))); | |
664 | spec_symbol_map.insert(pair<int,int>((0xfd),(0x117))); | |
665 | spec_symbol_map.insert(pair<int,int>((0xfe),(0x217))); | |
666 | } | |
667 | ||
668 | void neg_spec_symbol_map_entry() | |
669 | { | |
670 | map<int,int>::iterator it; | |
671 | neg_spec_symbol_map.insert(pair<int,int>((0x1c),(0x0f4))); | |
672 | neg_spec_symbol_map.insert(pair<int,int>((0x3c),(0x0f9))); | |
673 | neg_spec_symbol_map.insert(pair<int,int>((0x5c),(0x0f5))); | |
674 | neg_spec_symbol_map.insert(pair<int,int>((0x7c),(0x0f3))); | |
675 | neg_spec_symbol_map.insert(pair<int,int>((0x9c),(0x0f2))); | |
676 | neg_spec_symbol_map.insert(pair<int,int>((0xbc),(0x0fa))); | |
677 | neg_spec_symbol_map.insert(pair<int,int>((0xdc),(0x0f6))); | |
678 | neg_spec_symbol_map.insert(pair<int,int>((0xfc),(0x0f8))); | |
679 | neg_spec_symbol_map.insert(pair<int,int>((0xf7),(0x3a8))); | |
680 | neg_spec_symbol_map.insert(pair<int,int>((0xfb),(0x368))); | |
681 | neg_spec_symbol_map.insert(pair<int,int>((0xfd),(0x2e8))); | |
682 | neg_spec_symbol_map.insert(pair<int,int>((0xfe),(0x1e8))); | |
683 | } | |
684 | ||
685 | void decode_spec_symbol_map_entry() | |
686 | { | |
687 | map<int,int>::iterator it; | |
688 | for(it = spec_symbol_map.begin(); it != spec_symbol_map.end(); it++) | |
689 | { | |
690 | spec_symbol_decode_map[it->second] = it->first; | |
691 | } | |
692 | } | |
693 | ||
694 | void decode_neg_spec_symbol_map_entry() | |
695 | { | |
696 | map<int,int>::iterator it; | |
697 | for(it = neg_spec_symbol_map.begin(); it != neg_spec_symbol_map.end(); it++) | |
698 | { | |
699 | neg_spec_symbol_decode_map[it->second] = it->first; | |
700 | } | |
701 | } | |
702 | ||
703 | ||
704 | ||
705 | ||
706 | }; | |
707 | #endif | |
708 | ||
709 | ||
710 |