ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rclock.C
(Generate patch)

Comparing rxvt-unicode/src/rclock.C (file contents):
Revision 1.7 by root, Sat Jul 17 00:14:54 2021 UTC vs.
Revision 1.8 by sf-exg, Sun Nov 7 14:22:27 2021 UTC

184static int32_t 184static int32_t
185Sin (int32_t arg) 185Sin (int32_t arg)
186{ 186{
187 int32_t x = (arg - 360) * 16384 / 360; 187 int32_t x = (arg - 360) * 16384 / 360;
188 188
189 int c, x2, y; 189 int c, y;
190 static const int qN = 13, qA = 12, B = 19900, C = 3516; 190 static const int qN = 13, qA = 12, B = 19900, C = 3516;
191 191
192 c = x << (30 - qN); // Semi-circle info into carry. 192 c = x << (30 - qN); // Semi-circle info into carry.
193 x -= 1 << qN; // sine -> cosine calc 193 x -= 1 << qN; // sine -> cosine calc
194 194

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines