initial import
[ICEs.git] / 195695 / xorg.i.7
CommitLineData
45516216 1fxt1_quantize_ALPHA1()
2{
3 unsigned int *cc;
4 const int n_vect;
5 const int n_comp = 4;
6 float vec[1 + 1 + 1][4];
7 int i;
8 int j;
9 int k;
10unsigned long long hi;
11 int j1;
12 int j2;
13 int v1;
14 int v2;
15 float err;
16 float tv[2 * 2][4];
17 for (
18j1 = 0
19;
20j1 < 2
21;
22j1++
23) {
24
25for (
26j2 = 2
27;
28 j2 < 4
29;
30 j2++
31) {
32 float e;
33 for (
34i = 0
35;
36 i < n_comp
37;
38 i++
39) {
40 e += tv[j2][i];
41 }
42 if (e < err)
43 v1 = j1;
44 }
45 }
46 for (; i < n_comp; i++)
47 vec[0][i] = tv[1 - v1][i];
48 hi |= (unsigned int)vec[j][i];
49cc[1] = hi;
50}
51void *structfoo = fxt1_quantize_ALPHA1;