fis-gtm/sr_port/sub2stbl.c

131 lines
6.5 KiB
C

/****************************************************************
* *
* Copyright 2001 Sanchez Computer Associates, Inc. *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#include "mdef.h"
#ifdef BIGENDIAN
LITDEF unsigned short dpos[] = {
0x3030,0x3031,0x3032,0x3033,0x3034,0x3035,0x3036,0x3037,
0x3038,0x3039,0x302a,0x302a,0x302a,0x302a,0x302a,0x302a,
0x3130,0x3131,0x3132,0x3133,0x3134,0x3135,0x3136,0x3137,
0x3138,0x3139,0x312a,0x312a,0x312a,0x312a,0x312a,0x312a,
0x3230,0x3231,0x3232,0x3233,0x3234,0x3235,0x3236,0x3237,
0x3238,0x3239,0x322a,0x322a,0x322a,0x322a,0x322a,0x322a,
0x3330,0x3331,0x3332,0x3333,0x3334,0x3335,0x3336,0x3337,
0x3338,0x3339,0x332a,0x332a,0x332a,0x332a,0x332a,0x332a,
0x3430,0x3431,0x3432,0x3433,0x3434,0x3435,0x3436,0x3437,
0x3438,0x3439,0x342a,0x342a,0x342a,0x342a,0x342a,0x342a,
0x3530,0x3531,0x3532,0x3533,0x3534,0x3535,0x3536,0x3537,
0x3538,0x3539,0x352a,0x352a,0x352a,0x352a,0x352a,0x352a,
0x3630,0x3631,0x3632,0x3633,0x3634,0x3635,0x3636,0x3637,
0x3638,0x3639,0x362a,0x362a,0x362a,0x362a,0x362a,0x362a,
0x3730,0x3731,0x3732,0x3733,0x3734,0x3735,0x3736,0x3737,
0x3738,0x3739,0x372a,0x372a,0x372a,0x372a,0x372a,0x372a,
0x3830,0x3831,0x3832,0x3833,0x3834,0x3835,0x3836,0x3837,
0x3838,0x3839,0x382a,0x382a,0x382a,0x382a,0x382a,0x382a,
0x3930,0x3931,0x3932,0x3933,0x3934,0x3935,0x3936,0x3937,
0x3938,0x3939,0x392a,0x392a,0x392a,0x392a,0x392a,0x392a
};
LITDEF unsigned short dneg[] = {
0x302b,0x302b,0x302b,0x302b,0x302b,0x302b,0x302b,0x302b,
0x302b,0x302b,0x302b,0x302b,0x302b,0x302b,0x302b,0x302b,
0x312b,0x312b,0x312b,0x312b,0x312b,0x312b,0x312b,0x312b,
0x312b,0x312b,0x312b,0x312b,0x312b,0x312b,0x312b,0x312b,
0x322b,0x322b,0x322b,0x322b,0x322b,0x322b,0x322b,0x322b,
0x322b,0x322b,0x322b,0x322b,0x322b,0x322b,0x322b,0x322b,
0x332b,0x332b,0x332b,0x332b,0x332b,0x332b,0x332b,0x332b,
0x332b,0x332b,0x332b,0x332b,0x332b,0x332b,0x332b,0x332b,
0x342b,0x342b,0x342b,0x342b,0x342b,0x342b,0x342b,0x342b,
0x342b,0x342b,0x342b,0x342b,0x342b,0x342b,0x342b,0x342b,
0x352b,0x352b,0x352b,0x352b,0x352b,0x352b,0x352b,0x352b,
0x352b,0x352b,0x352b,0x352b,0x352b,0x352b,0x352b,0x352b,
0x392a,0x392a,0x392a,0x392a,0x392a,0x3939,0x3938,0x3937,
0x3936,0x3935,0x3934,0x3933,0x3932,0x3931,0x3930,0x392a,
0x382a,0x382a,0x382a,0x382a,0x382a,0x3839,0x3838,0x3837,
0x3836,0x3835,0x3834,0x3833,0x3832,0x3831,0x3830,0x382a,
0x372a,0x372a,0x372a,0x372a,0x372a,0x3739,0x3738,0x3737,
0x3736,0x3735,0x3734,0x3733,0x3732,0x3731,0x3730,0x372a,
0x362a,0x362a,0x362a,0x362a,0x362a,0x3639,0x3638,0x3637,
0x3636,0x3635,0x3634,0x3633,0x3632,0x3631,0x3630,0x362a,
0x352a,0x352a,0x352a,0x352a,0x352a,0x3539,0x3538,0x3537,
0x3536,0x3535,0x3534,0x3533,0x3532,0x3531,0x3530,0x352a,
0x342a,0x342a,0x342a,0x342a,0x342a,0x3439,0x3438,0x3437,
0x3436,0x3435,0x3434,0x3433,0x3432,0x3431,0x3430,0x342a,
0x332a,0x332a,0x332a,0x332a,0x332a,0x3339,0x3338,0x3337,
0x3336,0x3335,0x3334,0x3333,0x3332,0x3331,0x3330,0x332a,
0x322a,0x322a,0x322a,0x322a,0x322a,0x3239,0x3238,0x3237,
0x3236,0x3235,0x3234,0x3233,0x3232,0x3231,0x3230,0x322a,
0x312a,0x312a,0x312a,0x312a,0x312a,0x3139,0x3138,0x3137,
0x3136,0x3135,0x3134,0x3133,0x3132,0x3131,0x3130,0x312a,
0x302a,0x302a,0x302a,0x302a,0x302a,0x3039,0x3038,0x3037,
0x3036,0x3035,0x3034,0x3033,0x3032,0x3031,0x3030,0x302a,
};
#else
LITDEF unsigned short dpos[] = {
0x3030,0x3130,0x3230,0x3330,0x3430,0x3530,0x3630,0x3730,
0x3830,0x3930,0x2a30,0x2a30,0x2a30,0x2a30,0x2a30,0x2a30,
0x3031,0x3131,0x3231,0x3331,0x3431,0x3531,0x3631,0x3731,
0x3831,0x3931,0x2a31,0x2a31,0x2a31,0x2a31,0x2a31,0x2a31,
0x3032,0x3132,0x3232,0x3332,0x3432,0x3532,0x3632,0x3732,
0x3832,0x3932,0x2a32,0x2a32,0x2a32,0x2a32,0x2a32,0x2a32,
0x3033,0x3133,0x3233,0x3333,0x3433,0x3533,0x3633,0x3733,
0x3833,0x3933,0x2a33,0x2a33,0x2a33,0x2a33,0x2a33,0x2a33,
0x3034,0x3134,0x3234,0x3334,0x3434,0x3534,0x3634,0x3734,
0x3834,0x3934,0x2a34,0x2a34,0x2a34,0x2a34,0x2a34,0x2a34,
0x3035,0x3135,0x3235,0x3335,0x3435,0x3535,0x3635,0x3735,
0x3835,0x3935,0x2a35,0x2a35,0x2a35,0x2a35,0x2a35,0x2a35,
0x3036,0x3136,0x3236,0x3336,0x3436,0x3536,0x3636,0x3736,
0x3836,0x3936,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
0x3037,0x3137,0x3237,0x3337,0x3437,0x3537,0x3637,0x3737,
0x3837,0x3937,0x2a37,0x2a37,0x2a37,0x2a37,0x2a37,0x2a37,
0x3038,0x3138,0x3238,0x3338,0x3438,0x3538,0x3638,0x3738,
0x3838,0x3938,0x2a38,0x2a38,0x2a38,0x2a38,0x2a38,0x2a38,
0x3039,0x3139,0x3239,0x3339,0x3439,0x3539,0x3639,0x3739,
0x3839,0x3939,0x2a39,0x2a39,0x2a39,0x2a39,0x2a39,0x2a39
};
LITDEF unsigned short dneg[] = {
0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,
0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,0x2b30,
0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,
0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,0x2b31,
0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,
0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,0x2b32,
0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,
0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,0x2b33,
0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,
0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,0x2b34,
0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,
0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,0x2b35,
0x2a39,0x2a39,0x2a39,0x2a39,0x2a39,0x3939,0x3839,0x3739,
0x3639,0x3539,0x3439,0x3339,0x3239,0x3139,0x3039,0x2a39,
0x2a38,0x2a38,0x2a38,0x2a38,0x2a38,0x3938,0x3838,0x3738,
0x3638,0x3538,0x3438,0x3338,0x3238,0x3138,0x3038,0x2a38,
0x2a37,0x2a37,0x2a37,0x2a37,0x2a37,0x3937,0x3837,0x3737,
0x3637,0x3537,0x3437,0x3337,0x3237,0x3137,0x3037,0x2a37,
0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x3936,0x3836,0x3736,
0x3636,0x3536,0x3436,0x3336,0x3236,0x3136,0x3036,0x2a36,
0x2a35,0x2a35,0x2a35,0x2a35,0x2a35,0x3935,0x3835,0x3735,
0x3635,0x3535,0x3435,0x3335,0x3235,0x3135,0x3035,0x2a35,
0x2a34,0x2a34,0x2a34,0x2a34,0x2a34,0x3934,0x3834,0x3734,
0x3634,0x3534,0x3434,0x3334,0x3234,0x3134,0x3034,0x2a34,
0x2a33,0x2a33,0x2a33,0x2a33,0x2a33,0x3933,0x3833,0x3733,
0x3633,0x3533,0x3433,0x3333,0x3233,0x3133,0x3033,0x2a33,
0x2a32,0x2a32,0x2a32,0x2a32,0x2a32,0x3932,0x3832,0x3732,
0x3632,0x3532,0x3432,0x3332,0x3232,0x3132,0x3032,0x2a32,
0x2a31,0x2a31,0x2a31,0x2a31,0x2a31,0x3931,0x3831,0x3731,
0x3631,0x3531,0x3431,0x3331,0x3231,0x3131,0x3031,0x2a31,
0x2a30,0x2a30,0x2a30,0x2a30,0x2a30,0x3930,0x3830,0x3730,
0x3630,0x3530,0x3430,0x3330,0x3230,0x3130,0x3030,0x2a30,
};
#endif