summaryrefslogtreecommitdiff
blob: 9275a4162e5adbab2b67eb2ccb429be286ef38e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
diff -ruN mjpegtools-1.6.2.orig/utils/altivec/fdct_idct.c mjpegtools-1.6.2/utils/altivec/fdct_idct.c
--- mjpegtools-1.6.2.orig/utils/altivec/fdct_idct.c	2003-10-09 09:05:09.000000000 +0200
+++ mjpegtools-1.6.2/utils/altivec/fdct_idct.c	2004-08-05 09:38:31.808037456 +0200
@@ -177,14 +177,14 @@
 
 /* Post-scaling matrix -- scaled by 1 */
 static const vector signed short PostScale[8] = {
-    (vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
-    (vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880),
-    (vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
-    (vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
-    (vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
-    (vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
-    (vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
-    (vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880)
+    (const vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
+    (const vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880),
+    (const vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
+    (const vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
+    (const vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
+    (const vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
+    (const vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
+    (const vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880)
 };
 
 /***************************************************************
@@ -219,7 +219,7 @@
  * of lvx which is more efficient given the remainder of the instruction mix.
  */
 static const vector signed short SpecialConstants =
-  (vector signed short)VCONST(23170, 13573, 6518, 21895, -23170, -21895, 0, 0);
+  (const vector signed short)VCONST(23170, 13573, 6518, 21895, -23170, -21895, 0, 0);
 
 #ifdef ORIGINAL_SOURCE
 void DCT(short *input, short *output) {
@@ -364,14 +364,14 @@
 
 /* Pre-Scaling matrix -- scaled by 1 */
 static const vector signed short PreScale[8] = {
-    (vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
-    (vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880),
-    (vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
-    (vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
-    (vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
-    (vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
-    (vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
-    (vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880)
+    (const vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
+    (const vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880),
+    (const vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
+    (const vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
+    (const vector signed short)VCONST(4095, 5681, 5351, 4816, 4095, 4816, 5351, 5681),
+    (const vector signed short)VCONST(4816, 6680, 6292, 5663, 4816, 5663, 6292, 6680),
+    (const vector signed short)VCONST(5351, 7422, 6992, 6292, 5351, 6292, 6992, 7422),
+    (const vector signed short)VCONST(5681, 7880, 7422, 6680, 5681, 6680, 7422, 7880)
 };