-
Notifications
You must be signed in to change notification settings - Fork 2
/
q52.go
128 lines (122 loc) · 1.94 KB
/
q52.go
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Copyright 2018 Iri France SAS. All rights reserved. Use of this source code
// is governed by a license that can be found in the License file.
//
// Automatically generated by github.com/irifrance/fx/cmd/genq
// Do not edit
package fx
const (
Pi = 14148475504056880
E = 12242053029736146
Sqrt2 = 6369051672525774
)
const (
FrBits = 52
)
var cordicAtans = []T{
3537118876014220,
2088083199127252,
1103285815971868,
560045107102455,
281109329438703,
140691702195673,
70363018393317,
35183656287163,
17592096566750,
8796081837423,
4398045113003,
2199023080789,
1099511605931,
549755811157,
274877906603,
137438953429,
68719476731,
34359738367,
17179869184,
8589934592,
4294967296,
2147483648,
1073741824,
536870912,
268435456,
134217728,
67108864,
33554432,
16777216,
8388608,
4194304,
2097152,
1048576,
524288,
262144,
131072,
65536,
32768,
16384,
8192,
4096,
2048,
1024,
512,
256,
128,
64,
32,
16,
8,
4,
2,
}
var cordicKs = []T{
3184525836262886,
2848326498395271,
2763282590383387,
2741944181545471,
2736604460447611,
2735269205691152,
2734935371650037,
2734851911866632,
2734831046841193,
2734825830579859,
2734824526514214,
2734824200497784,
2734824118993675,
2734824098617647,
2734824093523640,
2734824092250139,
2734824091931763,
2734824091852169,
2734824091832271,
2734824091827296,
2734824091826053,
2734824091825742,
2734824091825664,
2734824091825645,
2734824091825640,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
2734824091825639,
}