euc_hi 31 fs/nls/nls_euc-jp.c #define MAP_SJIS2EUC(sjis_hi, sjis_lo, sjis_p, euc_hi, euc_lo, euc_p) { \ euc_hi 33 fs/nls/nls_euc-jp.c (euc_hi) = (sjis_hi) * 2 - (((sjis_p) * 2 - (euc_p)) - 1); \ euc_hi 36 fs/nls/nls_euc-jp.c (euc_hi) = (sjis_hi) * 2 - ((sjis_p) * 2 - (euc_p)); \ euc_hi 49 fs/nls/nls_euc-jp.c #define MAP_EUC2SJIS(euc_hi, euc_lo, euc_p, sjis_hi, sjis_lo, sjis_p) { \ euc_hi 50 fs/nls/nls_euc-jp.c if ((euc_hi) & 1) { \ euc_hi 51 fs/nls/nls_euc-jp.c (sjis_hi) = (euc_hi) / 2 + ((sjis_p) - (euc_p) / 2); \ euc_hi 54 fs/nls/nls_euc-jp.c (sjis_hi) = (euc_hi) / 2 + (((sjis_p) - (euc_p) / 2) - 1); \ euc_hi 273 fs/nls/nls_euc-jp.c static inline int euc2sjisibm_jisx0212(unsigned char *sjis, const unsigned char euc_hi, euc_hi 275 fs/nls/nls_euc-jp.c static inline int euc2sjisibm_g3upper(unsigned char *sjis, const unsigned char euc_hi, euc_hi 277 fs/nls/nls_euc-jp.c static inline int euc2sjisibm(unsigned char *sjis, const unsigned char euc_hi, euc_hi 304 fs/nls/nls_euc-jp.c static inline int euc2sjisibm_jisx0212(unsigned char *sjis, const unsigned char euc_hi, euc_hi 312 fs/nls/nls_euc-jp.c euc = (euc_hi << 8) | euc_lo; euc_hi 330 fs/nls/nls_euc-jp.c static inline int euc2sjisibm_g3upper(unsigned char *sjis, const unsigned char euc_hi, euc_hi 335 fs/nls/nls_euc-jp.c if (euc_hi == 0xF3) euc_hi 336 fs/nls/nls_euc-jp.c index = ((euc_hi << 8) | euc_lo) - 0xF3F3; euc_hi 338 fs/nls/nls_euc-jp.c index = ((euc_hi << 8) | euc_lo) - 0xF4A1 + 12; euc_hi 350 fs/nls/nls_euc-jp.c static inline int euc2sjisibm(unsigned char *sjis, const unsigned char euc_hi, euc_hi 356 fs/nls/nls_euc-jp.c if ((euc_hi == 0xA2) && (euc_lo == 0xCC)) { euc_hi 360 fs/nls/nls_euc-jp.c } else if ((euc_hi == 0xA2) && (euc_lo == 0xE8)) { euc_hi 366 fs/nls/nls_euc-jp.c if ((n = euc2sjisibm_g3upper(sjis, euc_hi, euc_lo))) { euc_hi 368 fs/nls/nls_euc-jp.c } else if ((n = euc2sjisibm_jisx0212(sjis, euc_hi, euc_lo))) {