|
Algorithm 3 Fixed-Q precomputation. |
Input: , the bit length of s, Output:
-
1:
Write s in signed binary form, with
-
2:
-
3:
fordown to 0 do
-
4:
Compute , such that is the line tangent to T
-
5:
-
6:
Append to
-
7:
if
then
-
8:
Compute , such that is the line joining T and Q
-
9:
-
10:
Append to
-
11:
else if
then
-
12:
Compute , such that is the line joining T and
-
13:
-
14:
Append to
-
15:
end if
-
16:
end for
-
17:
-
18:
Compute , such that is the line joining T and R
-
19:
-
20:
-
21:
Compute , such that is the line joining T and R
-
22:
-
23:
-
24:
return
|