OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [iconv/] [ccs/] [jis_x0201_1976.c] - Blame information for rev 158

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * This file was generated automatically - don't edit it.
3
 * File contains iconv CCS tables for jis_x0201_1976 encoding.
4
 */
5
 
6
#include "ccsbi.h"
7
 
8
#if defined (ICONV_TO_UCS_CCS_JIS_X0201_1976) \
9
 || defined (ICONV_FROM_UCS_CCS_JIS_X0201_1976)
10
 
11
#include <_ansi.h>
12
#include <sys/types.h>
13
#include <sys/param.h>
14
#include "ccs.h"
15
#include "ccsnames.h"
16
 
17
#if (BYTE_ORDER == LITTLE_ENDIAN)
18
#  define W(word) (word) & 0xFF, (word) >> 8
19
#elif (BYTE_ORDER == BIG_ENDIAN)
20
#  define W(word) (word) >> 8, (word) & 0xFF
21
#else
22
#  error "Unknown byte order."
23
#endif
24
 
25
/*
26
 * 8-bit jis_x0201_1976 -> UCS table (512 bytes).
27
 * ======================================================================
28
 */
29
#if defined (ICONV_TO_UCS_CCS_JIS_X0201_1976)
30
 
31
static _CONST __uint16_t
32
to_ucs_speed_jis_x0201_1976[] =
33
{
34
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
35
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
36
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
37
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
38
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
39
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
40
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
41
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
42
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
43
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
44
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
45
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
46
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
47
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
48
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
49
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
50
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
51
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
52
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
53
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
54
        INVALC,0xFF61,0xFF62,0xFF63,0xFF64,0xFF65,0xFF66,0xFF67,
55
        0xFF68,0xFF69,0xFF6A,0xFF6B,0xFF6C,0xFF6D,0xFF6E,0xFF6F,
56
        0xFF70,0xFF71,0xFF72,0xFF73,0xFF74,0xFF75,0xFF76,0xFF77,
57
        0xFF78,0xFF79,0xFF7A,0xFF7B,0xFF7C,0xFF7D,0xFF7E,0xFF7F,
58
        0xFF80,0xFF81,0xFF82,0xFF83,0xFF84,0xFF85,0xFF86,0xFF87,
59
        0xFF88,0xFF89,0xFF8A,0xFF8B,0xFF8C,0xFF8D,0xFF8E,0xFF8F,
60
        0xFF90,0xFF91,0xFF92,0xFF93,0xFF94,0xFF95,0xFF96,0xFF97,
61
        0xFF98,0xFF99,0xFF9A,0xFF9B,0xFF9C,0xFF9D,0xFF9E,0xFF9F,
62
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
63
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
64
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
65
        INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
66
 
67
};
68
 
69
#endif /* ICONV_TO_UCS_CCS_JIS_X0201_1976 */
70
 
71
/*
72
 * 8-bit UCS -> jis_x0201_1976 speed-optimized table (770 bytes).
73
 * ======================================================================
74
 */
75
 
76
#if defined (ICONV_FROM_UCS_CCS_JIS_X0201_1976)
77
 
78
static _CONST unsigned char
79
from_ucs_speed_jis_x0201_1976[] =
80
{
81
        W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
82
        /* Heading Block */
83
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
84
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
85
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
86
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
87
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
88
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
89
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
90
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
91
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
92
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
93
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
94
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
95
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
96
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
97
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
98
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
99
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
100
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
101
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
102
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
103
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
104
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
105
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
106
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
107
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
108
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
109
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
110
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
111
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
112
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
113
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
114
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
115
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
116
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
117
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
118
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
119
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
120
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
121
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
122
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
123
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
124
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
125
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
126
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
127
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
128
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
129
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
130
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
131
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
132
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
133
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
134
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
135
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
136
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
137
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
138
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
139
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
140
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
141
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
142
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
143
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
144
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
145
        W(INVBLK),W(INVBLK),W(INVBLK),W(INVBLK),
146
        W(INVBLK),W(INVBLK),W(INVBLK),W(0x0202),
147
        /* Block 256, Array index 0x0202 */
148
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
149
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
150
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
151
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
152
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
153
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
154
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
155
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
156
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
157
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
158
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
159
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
160
        0xFF,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
161
        0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,
162
        0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,
163
        0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,
164
        0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,
165
        0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,
166
        0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,
167
        0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF,
168
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
169
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
170
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
171
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
172
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
173
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
174
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
175
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
176
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
177
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
178
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
179
        0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
180
};
181
 
182
#endif /* ICONV_FROM_UCS_CCS_JIS_X0201_1976 */
183
 
184
/*
185
 * jis_x0201_1976 CCS description table.
186
 * ======================================================================
187
 */
188
_CONST iconv_ccs_t
189
_iconv_ccs_jis_x0201_1976 =
190
{
191
        TABLE_VERSION_1, /* Table version */
192
        ICONV_CCS_JIS_X0201_1976, /* CCS name */
193
        TABLE_8BIT, /* Table bits */
194
        0, /* Not Used */
195
#if defined (ICONV_FROM_UCS_CCS_JIS_X0201_1976)
196
        (__uint16_t *)&from_ucs_speed_jis_x0201_1976, /* UCS -> jis_x0201_1976 table */
197
#else
198
        (__uint16_t *)NULL,
199
#endif
200
        0, /* Not Used */
201
#if defined (ICONV_TO_UCS_CCS_JIS_X0201_1976)
202
        (__uint16_t *)&to_ucs_speed_jis_x0201_1976 /* jis_x0201_1976 -> UCS table */
203
#else
204
        (__uint16_t *)NULL,
205
#endif
206
};
207
 
208
#endif /* ICONV_TO_UCS_CCS_JIS_X0201_1976) || ... */
209
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.