Go to the source code of this file.
◆ M_PI
#define M_PI 3.141592653589793238462643 |
Definition at line 15 of file cos.c.
◆ PRECISION
Definition at line 14 of file cos.c.
◆ cos()
Definition at line 21 of file cos.c.
22{
23 int quadrant;
25
26
28
29
30 x =
x - quadrant * (
M_PI/2.);
31
32
33 quadrant = quadrant & 0x3;
34
35
37
38
40
41
42
43
44
45
46
47
48
49
51
52#if (PRECISION >= 10)
53 result += 1./(1.*2*3*4*5*6*7*8*9*10*11*12*13*14*15*16*17*18*19*20);
55#endif
56#if (PRECISION >= 9)
57 result += 1./(1.*2*3*4*5*6*7*8*9*10*11*12*13*14*15*16*17*18);
59#endif
60#if (PRECISION >= 8)
61 result += 1./(1.*2*3*4*5*6*7*8*9*10*11*12*13*14*15*16);
63#endif
64#if (PRECISION >= 7)
65 result += 1./(1.*2*3*4*5*6*7*8*9*10*11*12*13*14);
67#endif
68#if (PRECISION >= 6)
69 result += 1./(1.*2*3*4*5*6*7*8*9*10*11*12);
71#endif
72#if (PRECISION >= 5)
73 result += 1./(1.*2*3*4*5*6*7*8*9*10);
75#endif
76 result += 1./(1.*2*3*4*5*6*7*8);
78
79 result += 1./(1.*2*3*4*5*6);
81
84
87
89
90
92
94}
static double cos_off_tbl[]
static double cos_sign_tbl[]
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLint GLint GLint GLint x
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
◆ cos_off_tbl
◆ cos_sign_tbl
double cos_sign_tbl[] = {1,-1,-1,1} |
|
static |