Home
last modified time | relevance | path

Searched refs:BH2S (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/cjkcodecs/
D_codecs_hk.c100 #define BH2S(c1, c2) (((c1) - 0x87) * (0xfe - 0x40 + 1) + ((c2) - 0x40)) macro
127 int s = BH2S(c, IN2); in DECODER()
133 if (BH2S(0x87, 0x40) <= s && s <= BH2S(0xa0, 0xfe)) { in DECODER()
135 s -= BH2S(0x87, 0x40); in DECODER()
137 else if (BH2S(0xc6,0xa1) <= s && s <= BH2S(0xc8,0xfe)){ in DECODER()
139 s -= BH2S(0xc6, 0xa1); in DECODER()
141 else if (BH2S(0xf9,0xd6) <= s && s <= BH2S(0xfe,0xfe)){ in DECODER()
143 s -= BH2S(0xf9, 0xd6); in DECODER()
/external/python/cpython3/Modules/cjkcodecs/
D_codecs_hk.c108 #define BH2S(c1, c2) (((c1) - 0x87) * (0xfe - 0x40 + 1) + ((c2) - 0x40)) macro
134 int s = BH2S(c, INBYTE2); in DECODER()
140 if (BH2S(0x87, 0x40) <= s && s <= BH2S(0xa0, 0xfe)) { in DECODER()
142 s -= BH2S(0x87, 0x40); in DECODER()
144 else if (BH2S(0xc6,0xa1) <= s && s <= BH2S(0xc8,0xfe)){ in DECODER()
146 s -= BH2S(0xc6, 0xa1); in DECODER()
148 else if (BH2S(0xf9,0xd6) <= s && s <= BH2S(0xfe,0xfe)){ in DECODER()
150 s -= BH2S(0xf9, 0xd6); in DECODER()