Parent Directory | Revision Log | Patch
revision 678 by n-ki, Mon Apr 26 13:48:39 2004 UTC | revision 679 by jsorg71, Mon Apr 26 23:00:25 2004 UTC | |
---|---|---|
# | Line 229 translate_colour(uint32 colour) | Line 229 translate_colour(uint32 colour) |
229 | return make_colour(pc); | return make_colour(pc); |
230 | } | } |
231 | ||
232 | #define UNROLL8(stm) { stm stm stm stm stm stm stm stm } | |
233 | #define REPEAT(stm) \ | |
234 | { \ | |
235 | while (out <= end - 8 * 4) \ | |
236 | UNROLL8(stm) \ | |
237 | while (out < end) \ | |
238 | { stm } \ | |
239 | } | |
240 | ||
241 | static void | static void |
242 | translate8to8(uint8 * data, uint8 * out, uint8 * end) | translate8to8(uint8 * data, uint8 * out, uint8 * end) |
243 | { | { |
# | Line 241 translate8to16(uint8 * data, uint8 * out | Line 250 translate8to16(uint8 * data, uint8 * out |
250 | { | { |
251 | uint16 value; | uint16 value; |
252 | ||
253 | if (g_xserver_be) | if (g_arch_match) |
254 | REPEAT(*(((uint16*)out)++) = g_colmap[*(data++)];) | |
255 | else if (g_xserver_be) | |
256 | { | { |
257 | while (out < end) | while (out < end) |
258 | { | { |
# | Line 294 translate8to32(uint8 * data, uint8 * out | Line 305 translate8to32(uint8 * data, uint8 * out |
305 | { | { |
306 | uint32 value; | uint32 value; |
307 | ||
308 | if (g_xserver_be) | if (g_arch_match) |
309 | REPEAT(*(((uint32*)out)++) = g_colmap[*(data++)];) | |
310 | else if (g_xserver_be) | |
311 | { | { |
312 | while (out < end) | while (out < end) |
313 | { | { |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |