Merge branch 'collin' into collin+newconf+sdl
[grub2/phcoder.git] / lib / trig.c
blobe36aa38efc3843ab57c09ac93f471fbbc004f518
1 /* trig.c - Trigonometric table definitions. */
2 /*
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 2008 Free Software Foundation, Inc.
6 * GRUB is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GRUB is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20 #include <grub/trig.h>
22 /* These tables were generated with `gentrigtables.py'. */
24 short grub_trig_sintab[] =
26 0,402,804,1205,1606,2006,2404,2801,3196,3590,
27 3981,4370,4756,5139,5520,5897,6270,6639,7005,7366,
28 7723,8076,8423,8765,9102,9434,9760,10080,10394,10702,
29 11003,11297,11585,11866,12140,12406,12665,12916,13160,13395,
30 13623,13842,14053,14256,14449,14635,14811,14978,15137,15286,
31 15426,15557,15679,15791,15893,15986,16069,16143,16207,16261,
32 16305,16340,16364,16379,16384,16379,16364,16340,16305,16261,
33 16207,16143,16069,15986,15893,15791,15679,15557,15426,15286,
34 15137,14978,14811,14635,14449,14256,14053,13842,13623,13395,
35 13160,12916,12665,12406,12140,11866,11585,11297,11003,10702,
36 10394,10080,9760,9434,9102,8765,8423,8076,7723,7366,
37 7005,6639,6270,5897,5520,5139,4756,4370,3981,3590,
38 3196,2801,2404,2006,1606,1205,804,402,0,-402,
39 -804,-1205,-1606,-2006,-2404,-2801,-3196,-3590,-3981,-4370,
40 -4756,-5139,-5520,-5897,-6270,-6639,-7005,-7366,-7723,-8076,
41 -8423,-8765,-9102,-9434,-9760,-10080,-10394,-10702,-11003,-11297,
42 -11585,-11866,-12140,-12406,-12665,-12916,-13160,-13395,-13623,-13842,
43 -14053,-14256,-14449,-14635,-14811,-14978,-15137,-15286,-15426,-15557,
44 -15679,-15791,-15893,-15986,-16069,-16143,-16207,-16261,-16305,-16340,
45 -16364,-16379,-16384,-16379,-16364,-16340,-16305,-16261,-16207,-16143,
46 -16069,-15986,-15893,-15791,-15679,-15557,-15426,-15286,-15137,-14978,
47 -14811,-14635,-14449,-14256,-14053,-13842,-13623,-13395,-13160,-12916,
48 -12665,-12406,-12140,-11866,-11585,-11297,-11003,-10702,-10394,-10080,
49 -9760,-9434,-9102,-8765,-8423,-8076,-7723,-7366,-7005,-6639,
50 -6270,-5897,-5520,-5139,-4756,-4370,-3981,-3590,-3196,-2801,
51 -2404,-2006,-1606,-1205,-804,-402
54 short grub_trig_costab[] =
56 16384,16379,16364,16340,16305,16261,16207,16143,16069,15986,
57 15893,15791,15679,15557,15426,15286,15137,14978,14811,14635,
58 14449,14256,14053,13842,13623,13395,13160,12916,12665,12406,
59 12140,11866,11585,11297,11003,10702,10394,10080,9760,9434,
60 9102,8765,8423,8076,7723,7366,7005,6639,6270,5897,
61 5520,5139,4756,4370,3981,3590,3196,2801,2404,2006,
62 1606,1205,804,402,0,-402,-804,-1205,-1606,-2006,
63 -2404,-2801,-3196,-3590,-3981,-4370,-4756,-5139,-5520,-5897,
64 -6270,-6639,-7005,-7366,-7723,-8076,-8423,-8765,-9102,-9434,
65 -9760,-10080,-10394,-10702,-11003,-11297,-11585,-11866,-12140,-12406,
66 -12665,-12916,-13160,-13395,-13623,-13842,-14053,-14256,-14449,-14635,
67 -14811,-14978,-15137,-15286,-15426,-15557,-15679,-15791,-15893,-15986,
68 -16069,-16143,-16207,-16261,-16305,-16340,-16364,-16379,-16384,-16379,
69 -16364,-16340,-16305,-16261,-16207,-16143,-16069,-15986,-15893,-15791,
70 -15679,-15557,-15426,-15286,-15137,-14978,-14811,-14635,-14449,-14256,
71 -14053,-13842,-13623,-13395,-13160,-12916,-12665,-12406,-12140,-11866,
72 -11585,-11297,-11003,-10702,-10394,-10080,-9760,-9434,-9102,-8765,
73 -8423,-8076,-7723,-7366,-7005,-6639,-6270,-5897,-5520,-5139,
74 -4756,-4370,-3981,-3590,-3196,-2801,-2404,-2006,-1606,-1205,
75 -804,-402,0,402,804,1205,1606,2006,2404,2801,
76 3196,3590,3981,4370,4756,5139,5520,5897,6270,6639,
77 7005,7366,7723,8076,8423,8765,9102,9434,9760,10080,
78 10394,10702,11003,11297,11585,11866,12140,12406,12665,12916,
79 13160,13395,13623,13842,14053,14256,14449,14635,14811,14978,
80 15137,15286,15426,15557,15679,15791,15893,15986,16069,16143,
81 16207,16261,16305,16340,16364,16379