Lines Matching refs:dst

68 #define RRopPixels(dst,x)	(DoRRop(dst,cfb8StippleAnd[x], cfb8StippleXor[x]))
69 #define RRopPixelGroup(dst,x) (RRopPixels(dst,GetBitGroup(x)))
70 #define MaskRRopPixels(dst,x,mask) (DoMaskRRop(dst,cfb8StippleAnd[x], cfb8StippleXor[x], mask))
174 #define RRopBitGroup(dst,bits) \
176 *(dst) = RRopPixels(*(dst),bits); \
179 #define MaskRRopBitGroup(dst,bits,mask) \
181 *(dst) = MaskRRopPixels(*(dst),bits,mask); \
187 #define WriteBitGroup(dst,pixel,bits) \
190 *(dst) = (*(dst) & ~_maskTmp) | ((pixel) & _maskTmp); \
193 #define SwitchBitGroup(dst,pixel,bits) \
198 SwitchBitsLoop (*(dst) = (*(dst) & _maskTmp) | _pixTmp;) \
280 #define WriteBitGroup(dst,pixel,bits) \
285 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
288 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
291 ((CARD16 *) (dst))[DoublePixel0] = (pixel); \
294 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
297 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
298 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
301 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
302 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
305 ((CARD16 *) (dst))[DoublePixel0] = (pixel); \
306 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
309 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
312 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
313 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
316 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
317 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
320 ((CARD16 *) (dst))[DoublePixel0] = (pixel); \
321 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
324 ((CARD16 *) (dst))[DoublePixel1] = (pixel); \
327 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
328 ((CARD16 *) (dst))[DoublePixel1] = (pixel); \
331 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
332 ((CARD16 *) (dst))[DoublePixel1] = (pixel); \
335 ((CARD32 *) (dst))[0] = (pixel); \
339 #define WriteBitGroup(dst,pixel,bits) \
341 ((PixelGroup *) (dst))[OctaPixel0] = (pixel); \
347 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
350 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
353 ((CARD16 *) (dst))[DoublePixel0] = (pixel); \
356 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
359 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
360 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
363 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
364 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
367 ((CARD16 *) (dst))[DoublePixel0] = (pixel); \
368 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
371 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
374 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
375 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
378 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
379 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
382 ((CARD16 *) (dst))[DoublePixel0] = (pixel); \
383 ((CARD8 *) (dst))[SinglePixel3] = (pixel); \
386 ((CARD16 *) (dst))[DoublePixel1] = (pixel); \
389 ((CARD8 *) (dst))[SinglePixel0] = (pixel); \
390 ((CARD16 *) (dst))[DoublePixel1] = (pixel); \
393 ((CARD8 *) (dst))[SinglePixel1] = (pixel); \
394 ((CARD16 *) (dst))[DoublePixel1] = (pixel); \
397 ((CARD32 *) (dst))[QuadPixel0] = (pixel); \
404 ((CARD8 *) (dst))[SinglePixel4] = (pixel); \
407 ((CARD8 *) (dst))[SinglePixel5] = (pixel); \
410 ((CARD16 *) (dst))[DoublePixel2] = (pixel); \
413 ((CARD8 *) (dst))[SinglePixel6] = (pixel); \
416 ((CARD8 *) (dst))[SinglePixel4] = (pixel); \
417 ((CARD8 *) (dst))[SinglePixel6] = (pixel); \
420 ((CARD8 *) (dst))[SinglePixel5] = (pixel); \
421 ((CARD8 *) (dst))[SinglePixel6] = (pixel); \
424 ((CARD16 *) (dst))[DoublePixel2] = (pixel); \
425 ((CARD8 *) (dst))[SinglePixel6] = (pixel); \
428 ((CARD8 *) (dst))[SinglePixel7] = (pixel); \
431 ((CARD8 *) (dst))[SinglePixel4] = (pixel); \
432 ((CARD8 *) (dst))[SinglePixel7] = (pixel); \
435 ((CARD8 *) (dst))[SinglePixel5] = (pixel); \
436 ((CARD8 *) (dst))[SinglePixel7] = (pixel); \
439 ((CARD16 *) (dst))[DoublePixel2] = (pixel); \
440 ((CARD8 *) (dst))[SinglePixel7] = (pixel); \
443 ((CARD16 *) (dst))[DoublePixel3] = (pixel); \
446 ((CARD8 *) (dst))[SinglePixel4] = (pixel); \
447 ((CARD16 *) (dst))[DoublePixel3] = (pixel); \
450 ((CARD8 *) (dst))[SinglePixel5] = (pixel); \
451 ((CARD16 *) (dst))[DoublePixel3] = (pixel); \
454 ((CARD32 *) (dst))[QuadPixel1] = (pixel); \
461 #define SwitchBitGroup(dst,pixel,bits) { \
466 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel);) \
469 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel);) \
472 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel);) \
475 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
478 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel); \
479 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
482 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel); \
483 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
486 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
487 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
490 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
493 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel); \
494 ((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
497 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel); \
498 ((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
501 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
502 ((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
505 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel1] = (pixel);) \
508 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel); \
509 ((CARD16 *) (dst))[DoublePixel1] = (pixel);) \
512 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel); \
513 ((CARD16 *) (dst))[DoublePixel1] = (pixel);) \
516 SwitchBitsLoop (((CARD32 *) (dst))[0] = (pixel);) \
521 #define SwitchBitGroup(dst,pixel,bits) { \
523 SwitchBitsLoop (((PixelGroup *) (dst))[OctaPixel0] = (pixel);) \
529 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel);) \
532 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel);) \
535 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel);)\
538 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
541 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel); \
542 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
545 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel); \
546 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
549 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
550 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
553 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
556 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel); \
557 ((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
560 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel); \
561 ((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
564 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
565 ((CARD8 *) (dst))[SinglePixel3] = (pixel);) \
568 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel1] = (pixel);)\
571 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel0] = (pixel); \
572 ((CARD16 *) (dst))[DoublePixel1] = (pixel);)\
575 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel1] = (pixel); \
576 ((CARD16 *) (dst))[DoublePixel1] = (pixel);)\
579 SwitchBitsLoop (((CARD32 *) (dst))[QuadPixel0] = (pixel);) \
586 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel4] = (pixel);) \
589 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel5] = (pixel);) \
592 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel2] = (pixel);)\
595 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel6] = (pixel);) \
598 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel4] = (pixel); \
599 ((CARD8 *) (dst))[SinglePixel6] = (pixel);) \
602 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel5] = (pixel); \
603 ((CARD8 *) (dst))[SinglePixel6] = (pixel);) \
606 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel2] = (pixel); \
607 ((CARD8 *) (dst))[SinglePixel6] = (pixel);) \
610 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel7] = (pixel);) \
613 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel4] = (pixel); \
614 ((CARD8 *) (dst))[SinglePixel7] = (pixel);) \
617 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel5] = (pixel); \
618 ((CARD8 *) (dst))[SinglePixel7] = (pixel);) \
621 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel2] = (pixel); \
622 ((CARD8 *) (dst))[SinglePixel7] = (pixel);) \
625 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel3] = (pixel);)\
628 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel4] = (pixel); \
629 ((CARD16 *) (dst))[DoublePixel3] = (pixel);)\
632 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel5] = (pixel); \
633 ((CARD16 *) (dst))[DoublePixel3] = (pixel);)\
636 SwitchBitsLoop (((CARD32 *) (dst))[QuadPixel1] = (pixel);) \
647 #define WriteBitGroup(dst,pixel,bits) \
652 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
655 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
658 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
661 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
664 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
665 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
668 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
669 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
672 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
673 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
676 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
679 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
680 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
683 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
684 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
687 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
688 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
691 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
694 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
695 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
698 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
699 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
702 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
703 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
707 #define WriteBitGroup(dst,pixel,bits) \
709 ((PixelGroup *) (dst))[QuadPixel0] = (pixel); \
710 ((PixelGroup *) (dst))[QuadPixel1] = (pixel); \
717 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
720 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
723 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
726 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
729 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
730 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
733 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
734 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
737 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
738 ((CARD16 *) (dst))[SinglePixel2] = (pixel); \
741 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
744 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
745 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
748 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
749 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
752 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
753 ((CARD16 *) (dst))[SinglePixel3] = (pixel); \
756 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
759 ((CARD16 *) (dst))[SinglePixel0] = (pixel); \
760 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
763 ((CARD16 *) (dst))[SinglePixel1] = (pixel); \
764 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
767 ((CARD32 *) (dst))[DoublePixel0] = (pixel); \
768 ((CARD32 *) (dst))[DoublePixel1] = (pixel); \
775 ((CARD16 *) (dst))[SinglePixel4] = (pixel); \
778 ((CARD16 *) (dst))[SinglePixel5] = (pixel); \
781 ((CARD32 *) (dst))[DoublePixel2] = (pixel); \
784 ((CARD16 *) (dst))[SinglePixel6] = (pixel); \
787 ((CARD16 *) (dst))[SinglePixel4] = (pixel); \
788 ((CARD16 *) (dst))[SinglePixel6] = (pixel); \
791 ((CARD16 *) (dst))[SinglePixel5] = (pixel); \
792 ((CARD16 *) (dst))[SinglePixel6] = (pixel); \
795 ((CARD32 *) (dst))[DoublePixel2] = (pixel); \
796 ((CARD16 *) (dst))[SinglePixel6] = (pixel); \
799 ((CARD16 *) (dst))[SinglePixel7] = (pixel); \
802 ((CARD16 *) (dst))[SinglePixel4] = (pixel); \
803 ((CARD16 *) (dst))[SinglePixel7] = (pixel); \
806 ((CARD16 *) (dst))[SinglePixel5] = (pixel); \
807 ((CARD16 *) (dst))[SinglePixel7] = (pixel); \
810 ((CARD32 *) (dst))[DoublePixel2] = (pixel); \
811 ((CARD16 *) (dst))[SinglePixel7] = (pixel); \
814 ((CARD32 *) (dst))[DoublePixel3] = (pixel); \
817 ((CARD16 *) (dst))[SinglePixel4] = (pixel); \
818 ((CARD32 *) (dst))[DoublePixel3] = (pixel); \
821 ((CARD16 *) (dst))[SinglePixel5] = (pixel); \
822 ((CARD32 *) (dst))[DoublePixel3] = (pixel); \
825 ((CARD32 *) (dst))[DoublePixel2] = (pixel); \
826 ((CARD32 *) (dst))[DoublePixel3] = (pixel); \
833 #define SwitchBitGroup(dst,pixel,bits) { \
838 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel0] = (pixel);) \
841 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel1] = (pixel);) \
844 SwitchBitsLoop (((CARD32 *) (dst))[DoublePixel0] = (pixel);) \
847 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel2] = (pixel);) \
850 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel0] = (pixel); \
851 ((CARD16 *) (dst))[SinglePixel2] = (pixel);) \
854 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel1] = (pixel); \
855 ((CARD16 *) (dst))[SinglePixel2] = (pixel);) \
858 SwitchBitsLoop (((CARD32 *) (dst))[DoublePixel0] = (pixel); \
859 ((CARD16 *) (dst))[SinglePixel2] = (pixel);) \
862 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel3] = (pixel);) \
865 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel0] = (pixel); \
866 ((CARD16 *) (dst))[SinglePixel3] = (pixel);) \
869 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel1] = (pixel); \
870 ((CARD16 *) (dst))[SinglePixel3] = (pixel);) \
873 SwitchBitsLoop (((CARD32 *) (dst))[DoublePixel0] = (pixel); \
874 ((CARD16 *) (dst))[SinglePixel3] = (pixel);) \
877 SwitchBitsLoop (((CARD32 *) (dst))[DoublePixel1] = (pixel);) \
880 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel0] = (pixel); \
881 ((CARD32 *) (dst))[DoublePixel1] = (pixel);) \
884 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel1] = (pixel); \
885 ((CARD32 *) (dst))[DoublePixel1] = (pixel);) \
888 SwitchBitsLoop (((CARD32 *) (dst))[DoublePixel0] = (pixel); \
889 ((CARD32 *) (dst))[DoublePixel1] = (pixel);) \
894 #define SwitchBitGroup(dst,pixel,bits) { \
906 #define WriteBitGroup(dst,pixel,bits) \
913 ((CARD16 *) (dst))[DoublePixel0] = reg_pixel; \
914 ((CARD8 *) (dst))[SinglePixel2] = ((reg_pixel>>16)&0xFF); \
917 ((CARD8 *) (dst))[SinglePixel3] = reg_pixel&0xFF; \
918 ((CARD16 *) (dst))[DoublePixel2] = (reg_pixel>>8)&0xFFFF; \
921 ((CARD8 *) (dst))[SinglePixel3] = reg_pixel & 0xFF; \
922 ((CARD16 *) (dst))[DoublePixel0] = reg_pixel; \
923 ((CARD16 *) (dst))[DoublePixel2] = (reg_pixel>>8)&0xFFFF; \
924 ((CARD8 *) (dst))[SinglePixel2] = (reg_pixel>>16&0xFF); \
927 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
928 ((CARD8 *) (dst))[SinglePixel8] = (reg_pixel>>16)&0xFF; \
931 ((CARD16 *) (dst))[DoublePixel0] = \
932 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
934 ((CARD8 *) (dst))[SinglePixel2] = \
935 ((CARD8 *) (dst))[SinglePixel8] = reg_pixel&0xFF; \
938 ((CARD8 *) (dst))[SinglePixel3] = reg_pixel; \
939 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
941 ((CARD16 *) (dst))[DoublePixel2] = reg_pixel; \
943 ((CARD8 *) (dst))[SinglePixel8] = reg_pixel&0xFF; \
946 ((CARD16 *) (dst))[DoublePixel0] = \
947 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
948 ((CARD8 *) (dst))[SinglePixel3] = reg_pixel&0xFF; \
950 ((CARD16 *) (dst))[DoublePixel2] = reg_pixel; \
952 ((CARD8 *) (dst))[SinglePixel2] = \
953 ((CARD8 *) (dst))[SinglePixel8] = reg_pixel&0xFF; \
956 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel&0xFF; \
957 ((CARD16 *) (dst))[DoublePixel5] = (reg_pixel>>8); \
960 ((CARD16 *) (dst))[DoublePixel0] = reg_pixel; \
961 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel&0xFF; \
963 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
965 ((CARD8 *) (dst))[SinglePixel2] = reg_pixel&0xFF; \
968 ((CARD8 *) (dst))[SinglePixel3] = \
969 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel&0xFF; \
971 ((CARD16 *) (dst))[DoublePixel2] = \
972 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
975 ((CARD8 *) (dst))[SinglePixel3] = \
976 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel; \
977 ((CARD16 *) (dst))[DoublePixel0] = reg_pixel; \
979 ((CARD16 *) (dst))[DoublePixel2] = \
980 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
982 ((CARD8 *) (dst))[SinglePixel2] = reg_pixel; \
985 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
986 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel; \
988 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
990 ((CARD8 *) (dst))[SinglePixel8] = reg_pixel; \
993 ((CARD16 *) (dst))[DoublePixel0] = \
994 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
995 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel; \
997 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
999 ((CARD8 *) (dst))[SinglePixel2] = \
1000 ((CARD8 *) (dst))[SinglePixel8] = reg_pixel; \
1003 ((CARD8 *) (dst))[SinglePixel3] = \
1004 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel; \
1005 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
1007 ((CARD16 *) (dst))[DoublePixel2] = \
1008 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
1010 ((CARD8 *) (dst))[SinglePixel8] = reg_pixel; \
1013 ((CARD16 *) (dst))[DoublePixel0] = \
1014 ((CARD16 *) (dst))[DoublePixel3] = reg_pixel; \
1015 ((CARD8 *) (dst))[SinglePixel3] = \
1016 ((CARD8 *) (dst))[SinglePixel9] = reg_pixel; \
1018 ((CARD16 *) (dst))[DoublePixel2] = \
1019 ((CARD16 *) (dst))[DoublePixel5] = reg_pixel; \
1021 ((CARD8 *) (dst))[SinglePixel8] = \
1022 ((CARD8 *) (dst))[SinglePixel2] = reg_pixel; \
1027 #define WriteBitGroup(dst,pixel,bits) \
1029 ((PixelGroup *) (dst))[DoublePixel0] = (pixel); \
1030 ((PixelGroup *) (dst))[DoublePixel1] = (pixel); \
1031 ((PixelGroup *) (dst))[DoublePixel2] = (pixel); \
1032 ((PixelGroup *) (dst))[DoublePixel3] = (pixel); \
1039 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1042 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1045 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1046 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1049 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1052 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1053 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1056 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1057 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1060 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1061 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1062 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1065 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1068 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1069 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1072 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1073 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1076 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1077 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1078 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1081 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1082 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1085 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1086 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1087 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1090 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1091 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1092 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1095 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1096 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1097 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1098 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1105 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1108 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1111 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1112 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1115 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1118 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1119 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1122 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1123 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1126 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1127 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1128 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1131 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1134 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1135 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1138 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1139 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1142 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1143 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1144 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1147 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1148 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1151 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1152 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1153 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1156 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1157 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1158 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1161 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1162 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1163 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1164 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1171 #define SwitchBitGroup(dst,pixel,bits) { \
1176 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
1177 ((CARD8 *) (dst))[SinglePixel2] = (pixel);) \
1180 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel3] = (pixel); \
1181 ((CARD16 *) (dst))[DoublePixel2] = (pixel);) \
1184 SwitchBitsLoop (((CARD32 *) (dst))[QuadPixel0] = (pixel); \
1185 ((CARD16 *) (dst))[DoublePixel2] = (pixel);) \
1188 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel3] = (pixel); \
1189 ((CARD8 *) (dst))[SinglePixel8] = (pixel);) \
1192 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
1193 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
1194 ((CARD16 *) (dst))[DoublePixel3] = (pixel); \
1195 ((CARD8 *) (dst))[SinglePixel8] = (pixel);) \
1198 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel3] = (pixel); \
1199 ((CARD32 *) (dst))[QuadPixel2] = (pixel); \
1200 ((CARD8 *) (dst))[SinglePixel8] = (pixel);) \
1203 SwitchBitsLoop (((CARD32 *) (dst))[QuadPixel0] = (pixel); \
1204 ((CARD32 *) (dst))[QuadPixel1] = (pixel); \
1205 ((CARD8 *) (dst))[SinglePixel8] = (pixel);) \
1208 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel9] = (pixel); \
1209 ((CARD16 *) (dst))[DoublePixel5] = (pixel);) \
1212 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel0] = (pixel); \
1213 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
1214 ((CARD8 *) (dst))[SinglePixel9] = (pixel); \
1215 ((CARD16 *) (dst))[DoublePixel5] = (pixel);) \
1218 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel3] = (pixel); \
1219 ((CARD16 *) (dst))[DoublePixel2] = (pixel); \
1220 ((CARD8 *) (dst))[SinglePixel9] = (pixel); \
1221 ((CARD16 *) (dst))[DoublePixel5] = (pixel);) \
1224 SwitchBitsLoop (((CARD32 *) (dst))[QuadPixel0] = (pixel); \
1225 ((CARD16 *) (dst))[DoublePixel3] = (pixel);) \
1226 ((CARD8 *) (dst))[SinglePixel9] = (pixel); \
1227 ((CARD16 *) (dst))[DoublePixel5] = (pixel);) \
1230 SwitchBitsLoop (((CARD16 *) (dst))[DoublePixel3] = (pixel); \
1231 ((CARD32 *) (dst))[QuadPixel2] = (pixel);) \
1234 SwitchBitsLoop (((CARD16 *) (dst))[SinglePixel0] = (pixel); \
1235 ((CARD8 *) (dst))[SinglePixel2] = (pixel); \
1236 ((CARD16 *) (dst))[DoublePixel3] = (pixel); \
1237 ((CARD32 *) (dst))[QuadPixel2] = (pixel);) \
1240 SwitchBitsLoop (((CARD8 *) (dst))[SinglePixel3] = (pixel); \
1241 ((CARD32 *) (dst))[QuadPixel1] = (pixel); \
1242 ((CARD32 *) (dst))[QuadPixel2] = (pixel);) \
1245 SwitchBitsLoop (((CARD32 *) (dst))[QuadPixel0] = (pixel); \
1246 ((CARD32 *) (dst))[QuadPixel1] = (pixel); \
1247 ((CARD32 *) (dst))[QuadPixel2] = (pixel);) \
1252 #define SwitchBitGroup(dst,pixel,bits) { \
1261 #define WriteBitGroup(dst,pixel,bits) \
1266 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1269 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1272 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1273 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1276 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1279 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1280 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1283 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1284 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1287 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1288 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1289 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1292 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1295 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1296 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1299 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1300 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1303 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1304 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1305 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1308 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1309 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1312 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1313 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1314 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1317 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1318 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1319 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1322 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1323 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1324 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1325 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1329 #define WriteBitGroup(dst,pixel,bits) \
1331 ((PixelGroup *) (dst))[DoublePixel0] = (pixel); \
1332 ((PixelGroup *) (dst))[DoublePixel1] = (pixel); \
1333 ((PixelGroup *) (dst))[DoublePixel2] = (pixel); \
1334 ((PixelGroup *) (dst))[DoublePixel3] = (pixel); \
1341 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1344 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1347 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1348 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1351 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1354 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1355 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1358 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1359 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1362 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1363 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1364 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1367 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1370 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1371 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1374 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1375 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1378 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1379 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1380 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1383 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1384 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1387 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1388 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1389 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1392 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1393 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1394 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1397 ((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1398 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1399 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1400 ((CARD32 *) (dst))[SinglePixel3] = (pixel); \
1407 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1410 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1413 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1414 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1417 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1420 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1421 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1424 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1425 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1428 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1429 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1430 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1433 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1436 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1437 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1440 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1441 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1444 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1445 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1446 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1449 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1450 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1453 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1454 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1455 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1458 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1459 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1460 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1463 ((CARD32 *) (dst))[SinglePixel4] = (pixel); \
1464 ((CARD32 *) (dst))[SinglePixel5] = (pixel); \
1465 ((CARD32 *) (dst))[SinglePixel6] = (pixel); \
1466 ((CARD32 *) (dst))[SinglePixel7] = (pixel); \
1473 #define SwitchBitGroup(dst,pixel,bits) { \
1478 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel);) \
1481 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel1] = (pixel);) \
1484 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1485 ((CARD32 *) (dst))[SinglePixel1] = (pixel);) \
1488 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel2] = (pixel);) \
1491 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1492 ((CARD32 *) (dst))[SinglePixel2] = (pixel);) \
1495 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1496 ((CARD32 *) (dst))[SinglePixel2] = (pixel);) \
1499 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1500 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1501 ((CARD32 *) (dst))[SinglePixel2] = (pixel);) \
1504 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1507 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1508 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1511 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1512 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1515 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1516 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1517 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1520 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1521 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1524 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1525 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1526 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1529 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1530 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1531 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1534 SwitchBitsLoop (((CARD32 *) (dst))[SinglePixel0] = (pixel); \
1535 ((CARD32 *) (dst))[SinglePixel1] = (pixel); \
1536 ((CARD32 *) (dst))[SinglePixel2] = (pixel); \
1537 ((CARD32 *) (dst))[SinglePixel3] = (pixel);) \
1542 #define SwitchBitGroup(dst,pixel,bits) { \