10 void refresh_1(void *dest
, byte
*src
, void *pal
, int cnt
);
13 void refresh_2(void *dest
, byte
*src
, void *pal
, int cnt
);
16 void refresh_3(void *dest
, byte
*src
, void *pal
, int cnt
);
19 void refresh_4(void *dest
, byte
*src
, void *pal
, int cnt
);
21 #ifdef ASM_REFRESH_1_2X
22 void refresh_1_2x(void *dest
, byte
*src
, void *pal
, int cnt
);
24 #ifdef ASM_REFRESH_2_2X
25 void refresh_2_2x(void *dest
, byte
*src
, void *pal
, int cnt
);
27 #ifdef ASM_REFRESH_3_2X
28 void refresh_3_2x(void *dest
, byte
*src
, void *pal
, int cnt
);
30 #ifdef ASM_REFRESH_4_2X
31 void refresh_4_2x(void *dest
, byte
*src
, void *pal
, int cnt
);
33 #ifdef ASM_REFRESH_2_3X
34 void refresh_2_3x(void *dest
, byte
*src
, void *pal
, int cnt
);
36 #ifdef ASM_REFRESH_3_3X
37 void refresh_3_3x(void *dest
, byte
*src
, void *pal
, int cnt
);
39 #ifdef ASM_REFRESH_4_3X
40 void refresh_4_3x(void *dest
, byte
*src
, void *pal
, int cnt
);
42 #ifdef ASM_REFRESH_3_4X
43 void refresh_3_4x(void *dest
, byte
*src
, void *pal
, int cnt
);
45 #ifdef ASM_REFRESH_4_4X
46 void refresh_4_4x(void *dest
, byte
*src
, void *pal
, int cnt
);
50 #define MAY_ALIAS __attribute__((__may_alias__))
55 typedef un16 un16a MAY_ALIAS
;
56 typedef un32 un32a MAY_ALIAS
;
60 static void refresh_1(void *dest_
, byte
*src
, void *pal_
, int cnt
)
62 byte
*dest
= dest_
, *pal
= pal_
;
63 while(cnt
--) *(dest
++) = pal
[*(src
++)];
68 static void refresh_2(void *dest_
, byte
*src
, void *pal_
, int cnt
)
70 un16a
*dest
= dest_
, *pal
= pal_
;
71 while (cnt
--) *(dest
++) = pal
[*(src
++)];
76 static void refresh_3(void *dest_
, byte
*src
, void *pal_
, int cnt
)
92 static void refresh_4(void *dest_
, byte
*src
, void *pal_
, int cnt
)
94 un32a
*dest
= dest_
, *pal
= pal_
;
95 while (cnt
--) *(dest
++) = pal
[*(src
++)];
100 #ifndef ASM_REFRESH_1_2X
101 static void refresh_1_2x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
103 byte
*dest
= dest_
, *pal
= pal_
;
114 #ifndef ASM_REFRESH_2_2X
115 static void refresh_2_2x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
117 un16a
*dest
= dest_
, *pal
= pal_
;
128 #ifndef ASM_REFRESH_3_2X
129 static void refresh_3_2x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
137 dest
[0] = dest
[3] = c
;
138 dest
[1] = dest
[4] = c
>>8;
139 dest
[2] = dest
[5] = c
>>16;
145 #ifndef ASM_REFRESH_4_2X
146 static void refresh_4_2x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
148 un32a
*dest
= dest_
, *pal
= pal_
;
159 #ifndef ASM_REFRESH_2_3X
160 static void refresh_2_3x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
162 un16a
*dest
= dest_
, *pal
= pal_
;
174 #ifndef ASM_REFRESH_3_3X
175 static void refresh_3_3x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
183 dest
[0] = dest
[3] = dest
[6] = c
;
184 dest
[1] = dest
[4] = dest
[7] = c
>>8;
185 dest
[2] = dest
[5] = dest
[8] = c
>>16;
191 #ifndef ASM_REFRESH_4_3X
192 static void refresh_4_3x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
194 un32a
*dest
= dest_
, *pal
= pal_
;
206 #ifndef ASM_REFRESH_3_4X
207 static void refresh_3_4x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
215 dest
[0] = dest
[3] = dest
[6] = dest
[9] = c
;
216 dest
[1] = dest
[4] = dest
[7] = dest
[10] = c
>>8;
217 dest
[2] = dest
[5] = dest
[8] = dest
[11] = c
>>16;
223 #ifndef ASM_REFRESH_4_4X
224 static void refresh_4_4x(void *dest_
, byte
*src
, void *pal_
, int cnt
)
226 un32a
*dest
= dest_
, *pal
= pal_
;