14 void refresh_1(byte
*dest
, byte
*src
, byte
*pal
, int cnt
)
16 while(cnt
--) *(dest
++) = pal
[*(src
++)];
21 void refresh_2(un16
*dest
, byte
*src
, un16
*pal
, int cnt
)
23 while (cnt
--) *(dest
++) = pal
[*(src
++)];
28 void refresh_3(byte
*dest
, byte
*src
, un32
*pal
, int cnt
)
42 void refresh_4(un32
*dest
, byte
*src
, un32
*pal
, int cnt
)
44 while (cnt
--) *(dest
++) = pal
[*(src
++)];
51 #ifndef ASM_REFRESH_1_2X
52 void refresh_1_2x(byte
*dest
, byte
*src
, byte
*pal
, int cnt
)
64 #ifndef ASM_REFRESH_2_2X
65 void refresh_2_2x(un16
*dest
, byte
*src
, un16
*pal
, int cnt
)
77 #ifndef ASM_REFRESH_3_2X
78 void refresh_3_2x(byte
*dest
, byte
*src
, un32
*pal
, int cnt
)
84 dest
[0] = dest
[3] = c
;
85 dest
[1] = dest
[4] = c
>>8;
86 dest
[2] = dest
[5] = c
>>16;
92 #ifndef ASM_REFRESH_4_2X
93 void refresh_4_2x(un32
*dest
, byte
*src
, un32
*pal
, int cnt
)
105 #ifndef ASM_REFRESH_2_3X
106 void refresh_2_3x(un16
*dest
, byte
*src
, un16
*pal
, int cnt
)
119 #ifndef ASM_REFRESH_3_3X
120 void refresh_3_3x(byte
*dest
, byte
*src
, un32
*pal
, int cnt
)
126 dest
[0] = dest
[3] = dest
[6] = c
;
127 dest
[1] = dest
[4] = dest
[7] = c
>>8;
128 dest
[2] = dest
[5] = dest
[8] = c
>>16;
134 #ifndef ASM_REFRESH_4_3X
135 void refresh_4_3x(un32
*dest
, byte
*src
, un32
*pal
, int cnt
)
148 #ifndef ASM_REFRESH_3_4X
149 void refresh_3_4x(byte
*dest
, byte
*src
, un32
*pal
, int cnt
)
155 dest
[0] = dest
[3] = dest
[6] = dest
[9] = c
;
156 dest
[1] = dest
[4] = dest
[7] = dest
[10] = c
>>8;
157 dest
[2] = dest
[5] = dest
[8] = dest
[11] = c
>>16;
163 #ifndef ASM_REFRESH_4_4X
164 void refresh_4_4x(un32
*dest
, byte
*src
, un32
*pal
, int cnt
)