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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
$NetBSD: patch-ad,v 1.5 2003/10/27 23:19:46 kristerw Exp $
--- src/video/SDL_blit_A.c.orig Sat Aug 30 21:13:06 2003
+++ src/video/SDL_blit_A.c Mon Oct 27 21:10:22 2003
@@ -220,11 +220,11 @@
int dstskip = info->d_skip >> 2;
Uint8 load[8];
- *(Uint64 *)load = 0x00fefefe00fefefe;/* alpha128 mask */
+ *(Uint64 *)load = 0x00fefefe00fefefeULL;/* alpha128 mask */
movq_m2r(*load, mm4); /* alpha128 mask -> mm4 */
- *(Uint64 *)load = 0x0001010100010101;/* !alpha128 mask */
+ *(Uint64 *)load = 0x0001010100010101ULL;/* !alpha128 mask */
movq_m2r(*load, mm3); /* !alpha128 mask -> mm3 */
- *(Uint64 *)load = 0xFF000000FF000000;/* dst alpha mask */
+ *(Uint64 *)load = 0xFF000000FF000000ULL;/* dst alpha mask */
movq_m2r(*load, mm7); /* dst alpha mask -> mm7 */
while(height--) {
DUFFS_LOOP_DOUBLE2(
@@ -276,10 +276,10 @@
alpha, alpha, alpha, alpha};
movq_m2r(*load, mm4); /* alpha -> mm4 */
- *(Uint64 *)load = 0x00FF00FF00FF00FF;
+ *(Uint64 *)load = 0x00FF00FF00FF00FFULL;
movq_m2r(*load, mm3); /* mask -> mm3 */
pand_r2r(mm3, mm4); /* mm4 & mask -> 0A0A0A0A -> mm4 */
- *(Uint64 *)load = 0xFF000000FF000000;/* dst alpha mask */
+ *(Uint64 *)load = 0xFF000000FF000000ULL;/* dst alpha mask */
movq_m2r(*load, mm7); /* dst alpha mask -> mm7 */
while(height--) {
@@ -360,13 +360,13 @@
Uint32 alpha = 0;
Uint8 load[8];
- *(Uint64 *)load = 0x00FF00FF00FF00FF;
+ *(Uint64 *)load = 0x00FF00FF00FF00FFULL;
movq_m2r(*load, mm3); /* mask -> mm2 */
- *(Uint64 *)load = 0x00FF000000000000;
+ *(Uint64 *)load = 0x00FF000000000000ULL;
movq_m2r(*load, mm7); /* dst alpha mask -> mm2 */
- *(Uint64 *)load = 0x00FFFFFF00FFFFFF;
+ *(Uint64 *)load = 0x00FFFFFF00FFFFFFULL;
movq_m2r(*load, mm0); /* alpha 255 mask -> mm0 */
- *(Uint64 *)load = 0xFF000000FF000000;
+ *(Uint64 *)load = 0xFF000000FF000000ULL;
movq_m2r(*load, mm6); /* alpha 255 !mask -> mm6 */
while(height--) {
DUFFS_LOOP4({
@@ -792,11 +792,11 @@
punpcklwd_r2r(mm0, mm0); /* 0A0A0A0A -> mm0 */
/* Setup the 565 color channel masks */
- *(Uint64 *)load = 0xF800F800F800F800;
+ *(Uint64 *)load = 0xF800F800F800F800ULL;
movq_m2r(*load, mm1); /* MASKRED -> mm1 */
- *(Uint64 *)load = 0x07E007E007E007E0;
+ *(Uint64 *)load = 0x07E007E007E007E0ULL;
movq_m2r(*load, mm4); /* MASKGREEN -> mm4 */
- *(Uint64 *)load = 0x001F001F001F001F;
+ *(Uint64 *)load = 0x001F001F001F001FULL;
movq_m2r(*load, mm7); /* MASKBLUE -> mm7 */
while(height--) {
DUFFS_LOOP_QUATRO2(
@@ -942,11 +942,11 @@
punpcklwd_r2r(mm0, mm0); /* 0A0A0A0A -> mm0 */
/* Setup the 555 color channel masks */
- *(Uint64 *)load = 0x7C007C007C007C00;
+ *(Uint64 *)load = 0x7C007C007C007C00ULL;
movq_m2r(*load, mm1); /* MASKRED -> mm1 */
- *(Uint64 *)load = 0x03E003E003E003E0;
+ *(Uint64 *)load = 0x03E003E003E003E0ULL;
movq_m2r(*load, mm4); /* MASKGREEN -> mm4 */
- *(Uint64 *)load = 0x001F001F001F001F;
+ *(Uint64 *)load = 0x001F001F001F001FULL;
movq_m2r(*load, mm7); /* MASKBLUE -> mm7 */
while(height--) {
DUFFS_LOOP_QUATRO2(
|