-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsine.h
70 lines (68 loc) · 2.29 KB
/
sine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include "crlibm.h"
#include "crlibm_private.h"
static const scs constant_poly[16]=
/*~1/33!*/
{{{0x09bed3db, 0x281320a5, 0x17cafa6b, 0x233fc2aa,
0x0bb37b3e, 0x2d3bc772, 0x24241f7e, 0x1799acb2},
DB_ONE, -5, 1},
/*~1/31!*/
{{0x000000a1, 0x29803c82, 0x1e7c052c, 0x11d03efa,
0x2aabe64f, 0x393aad1d, 0x051dfe67, 0x1004a1ae},
DB_ONE, -4, -1},
/*~1/29!*/
{{0x00024b3f, 0x0c1a06a0, 0x25f7b477, 0x1b855ea1,
0x1e65fd11, 0x2c2dc17b, 0x10e439b2, 0x3b45213b},
DB_ONE, -4, 1},
/*~1/27!*/
{{0x0746ac70, 0x2d83ea09, 0x2c0e0531, 0x336b3616,
0x3b7d9461, 0x1715777e, 0x125784a1, 0x27186b7d},
DB_ONE, -4, -1},
/*~1/25!*/
{{0x0000004f, 0x33ccdd16, 0x17af9bfe, 0x287a58b6,
0x0e1934ec, 0x1a546597, 0x113b325e, 0x0e487ff4},
DB_ONE, -3, 1},
/*~1/23!*/
{{0x0000bb0d, 0x28262c70, 0x0ccaabac, 0x0e2b9005,
0x3a8fbf8f, 0x0c824f6c, 0x35a6c037, 0x323f0e58},
DB_ONE, -3, -1},
/*~1/21!*/
{{0x0171b8ef, 0x1b73d5c6, 0x0be08e09, 0x30cc1272,
0x1e07089e, 0x3feda742, 0x021ee135, 0x01f1e030},
DB_ONE, -3, 1},
/*~1/19!*/
{{0x00000009, 0x1e9368d0, 0x0a0ab926, 0x1438fbe9,
0x29aa3113, 0x2f1177b5, 0x0a6a496d, 0x3a2972d5},
DB_ONE, -2, -1},
/*~1/17!*/
{{0x00000ca9, 0x18ee0615, 0x2a535930, 0x0a31e606,
0x22cc5fc0, 0x1a3c24a6, 0x2361ddfa, 0x13f2d513},
DB_ONE, -2, 1},
/*~1/15!*/
{{0x000d73f9, 0x3ce67703, 0x388ec32b, 0x161da690,
0x29e432c5, 0x1ecb50d8, 0x363872aa, 0x26abc23a},
DB_ONE, -2, -1},
/*~1/13!*/
{{0x0b092309, 0x350da12f, 0x251c198e, 0x2475e836,
0x0095238d, 0x29cf57b4, 0x0ec2d424, 0x09450ac8},
DB_ONE, -2, 1},
/*~1/11!*/
{{0x0000001a, 0x399159fd, 0x144e38fe, 0x1d1f92e0,
0x37dc7187, 0x02086bd8, 0x2e9be8fb, 0x038d9e58},
DB_ONE, -1, -1},
/*~1/ 9!*/
{{0x00000b8e, 0x3c74aad8, 0x399c7d56, 0x03911ca0,
0x00b8ef19, 0x077b454c, 0x257db8d4, 0x08cc8213},
DB_ONE, -1, 1},
/*~1/ 7!*/
{{0x00034034, 0x00d00d00, 0x34034034, 0x00d00d00,
0x34034033, 0x3ac10fa9, 0x3038fd7b, 0x33e66168},
DB_ONE, -1, -1},
/*~1/ 5!*/
{{0x00888888, 0x22222222, 0x08888888, 0x22222222,
0x08888888, 0x2213cd72, 0x2d786b72, 0x240b2353},
DB_ONE, -1, 1},
/*~1/ 3!*/
{{0x0aaaaaaa, 0x2aaaaaaa, 0x2aaaaaaa, 0x2aaaaaaa,
0x2aaaaaaa, 0x2aaaa50a, 0x004d6b27, 0x2c149624},
DB_ONE, -1, -1 }};
#define constant_poly_ptr (scs_ptr)&constant_poly