signed int sin_table[256] = { 
0x0, 0xc, 0x19, 0x25, 0x32, 0x3e, 0x4b, 0x57, 0x63, 
0x70, 0x7c, 0x88, 0x94, 0xa0, 0xac, 0xb8, 0xc3, 
0xcf, 0xda, 0xe6, 0xf1, 0xfc, 0x107, 0x111, 0x11c, 
0x126, 0x130, 0x13a, 0x144, 0x14e, 0x157, 0x161, 0x16a, 
0x172, 0x17b, 0x183, 0x18b, 0x193, 0x19b, 0x1a2, 0x1a9, 
0x1b0, 0x1b7, 0x1bd, 0x1c3, 0x1c9, 0x1ce, 0x1d4, 0x1d9, 
0x1dd, 0x1e2, 0x1e6, 0x1e9, 0x1ed, 0x1f0, 0x1f3, 0x1f6, 
0x1f8, 0x1fa, 0x1fc, 0x1fd, 0x1fe, 0x1ff, 0x1ff, 0x1ff, 
0x1ff, 0x1ff, 0x1fe, 0x1fd, 0x1fc, 0x1fa, 0x1f8, 0x1f6, 
0x1f3, 0x1f0, 0x1ed, 0x1e9, 0x1e6, 0x1e2, 0x1dd, 0x1d9, 
0x1d4, 0x1ce, 0x1c9, 0x1c3, 0x1bd, 0x1b7, 0x1b0, 0x1a9, 
0x1a2, 0x19b, 0x193, 0x18b, 0x183, 0x17b, 0x172, 0x16a, 
0x161, 0x157, 0x14e, 0x144, 0x13a, 0x130, 0x126, 0x11c, 
0x111, 0x107, 0xfc, 0xf1, 0xe6, 0xda, 0xcf, 0xc3, 
0xb8, 0xac, 0xa0, 0x94, 0x88, 0x7c, 0x70, 0x63, 
0x57, 0x4b, 0x3e, 0x32, 0x25, 0x19, 0xc, 0x0, 
0xfffffff4, 0xffffffe7, 0xffffffdb, 0xffffffce, 0xffffffc2, 0xffffffb5, 0xffffffa9, 0xffffff9d, 
0xffffff90, 0xffffff84, 0xffffff78, 0xffffff6c, 0xffffff60, 0xffffff54, 0xffffff48, 0xffffff3d, 
0xffffff31, 0xffffff26, 0xffffff1a, 0xffffff0f, 0xffffff04, 0xfffffef9, 0xfffffeef, 0xfffffee4, 
0xfffffeda, 0xfffffed0, 0xfffffec6, 0xfffffebc, 0xfffffeb2, 0xfffffea9, 0xfffffe9f, 0xfffffe96, 
0xfffffe8e, 0xfffffe85, 0xfffffe7d, 0xfffffe75, 0xfffffe6d, 0xfffffe65, 0xfffffe5e, 0xfffffe57, 
0xfffffe50, 0xfffffe49, 0xfffffe43, 0xfffffe3d, 0xfffffe37, 0xfffffe32, 0xfffffe2c, 0xfffffe27, 
0xfffffe23, 0xfffffe1e, 0xfffffe1a, 0xfffffe17, 0xfffffe13, 0xfffffe10, 0xfffffe0d, 0xfffffe0a, 
0xfffffe08, 0xfffffe06, 0xfffffe04, 0xfffffe03, 0xfffffe02, 0xfffffe01, 0xfffffe01, 0xfffffe01, 
0xfffffe01, 0xfffffe01, 0xfffffe02, 0xfffffe03, 0xfffffe04, 0xfffffe06, 0xfffffe08, 0xfffffe0a, 
0xfffffe0d, 0xfffffe10, 0xfffffe13, 0xfffffe17, 0xfffffe1a, 0xfffffe1e, 0xfffffe23, 0xfffffe27, 
0xfffffe2c, 0xfffffe32, 0xfffffe37, 0xfffffe3d, 0xfffffe43, 0xfffffe49, 0xfffffe50, 0xfffffe57, 
0xfffffe5e, 0xfffffe65, 0xfffffe6d, 0xfffffe75, 0xfffffe7d, 0xfffffe85, 0xfffffe8e, 0xfffffe96, 
0xfffffe9f, 0xfffffea9, 0xfffffeb2, 0xfffffebc, 0xfffffec6, 0xfffffed0, 0xfffffeda, 0xfffffee4, 
0xfffffeef, 0xfffffef9, 0xffffff04, 0xffffff0f, 0xffffff1a, 0xffffff26, 0xffffff31, 0xffffff3d, 
0xffffff48, 0xffffff54, 0xffffff60, 0xffffff6c, 0xffffff78, 0xffffff84, 0xffffff90, 0xffffff9d, 
0xffffffa9, 0xffffffb5, 0xffffffc2, 0xffffffce, 0xffffffdb, 0xffffffe7, 0xfffffff4
};

signed int tan_table[64] = { 
0x0, 0xc9, 0x192, 0x25c, 0x326, 0x3f2, 0x4bf, 0x58d, 0x65d, 
0x72f, 0x803, 0x8db, 0x9b5, 0xa92, 0xb73, 0xc58, 0xd41, 
0xe2f, 0xf22, 0x101b, 0x111a, 0x1220, 0x132e, 0x1443, 0x1561, 
0x1689, 0x17bb, 0x18f9, 0x1a43, 0x1b9a, 0x1d00, 0x1e77, 0x2000, 
0x219c, 0x234e, 0x2518, 0x26fd, 0x2901, 0x2b25, 0x2d6f, 0x2fe4, 
0x3288, 0x3563, 0x387c, 0x3bde, 0x3f92, 0x43a8, 0x4830, 0x4d41, 
0x52f4, 0x596f, 0x60dd, 0x697d, 0x73a2, 0x7fc0, 0x8e80, 0xa0df, 
0xb86b, 0xd7b9, 0x10373, 0x144e6, 0x1b1d0, 0x28b60, 0x51789
};

