more
[ICEs.git] / 195695 / xorg.i.7
1 fxt1_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;
10 unsigned 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 (
18 j1 = 0
19 ;
20 j1 < 2
21 ;
22 j1++
23 ) {
24
25 for (
26 j2 = 2
27 ;
28 j2 < 4
29 ;
30 j2++
31 ) {
32 float e;
33 for (
34 i = 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];
49 cc[1] = hi;
50 }
51 void *structfoo = fxt1_quantize_ALPHA1;