-
Notifications
You must be signed in to change notification settings - Fork 2
/
q48.go
121 lines (115 loc) · 1.76 KB
/
q48.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
// 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 q48
//
// Automatically generated by github.com/irifrance/fx/cmd/genq
// Do not edit
package fx
const (
Pi = 884279719003555
E = 765128314358509
Sqrt2 = 398065729532861
)
const (
FrBits = 48
)
var cordicAtans = []T{
221069929750889,
130505199945453,
68955363498242,
35002819193903,
17569333089919,
8793231387230,
4397688649582,
2198978517948,
1099506035422,
549755114839,
274877819563,
137438942549,
68719475371,
34359738197,
17179869163,
8589934589,
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{
199032864766430,
178020406149704,
172705161898962,
171371511346592,
171037778777976,
170954325355697,
170933460728127,
170928244491665,
170926940427575,
170926614411241,
170926532907138,
170926512531111,
170926507437105,
170926506163603,
170926505845228,
170926505765634,
170926505745735,
170926505740761,
170926505739517,
170926505739206,
170926505739128,
170926505739109,
170926505739104,
170926505739103,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
170926505739102,
}