-
Notifications
You must be signed in to change notification settings - Fork 2
/
q56.go
137 lines (131 loc) · 2.17 KB
/
q56.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
129
130
131
132
133
134
135
136
137
// 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.
// +build q56
//
// Automatically generated by github.com/irifrance/fx/cmd/genq
// Do not edit
package fx
const (
Pi = 226375608064910080
E = 195872848475778336
Sqrt2 = 101904826760412368
)
const (
FrBits = 56
)
var cordicAtans = []T{
56593902016227520,
33409331186036028,
17652573055549882,
8960721713639278,
4497749271019253,
2251067235130761,
1125808294293075,
562938500594601,
281473545067998,
140737309398767,
70368721808055,
35184369292630,
17592185694891,
8796092978517,
4398046505643,
2199023254869,
1099511627691,
549755813877,
274877906943,
137438953472,
68719476736,
34359738368,
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{
50952413380206176,
45573223974324336,
44212521446134192,
43871106904727536,
43785671367161776,
43764307291058432,
43758965946400592,
43757630589866112,
43757296749459088,
43757213289277736,
43757192424227424,
43757187207964536,
43757185903898792,
43757185577882352,
43757185496378240,
43757185476002216,
43757185470908208,
43757185469634704,
43757185469316328,
43757185469236736,
43757185469216840,
43757185469211864,
43757185469210624,
43757185469210312,
43757185469210232,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
43757185469210216,
}