• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: 提交

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

修訂6e6f0a63f552ff529e5123b898977636bcfda6b9 (tree)
時間2019-03-20 22:25:03
作者K.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][COMMON] Delete unneeded builtin_assume_aligned().MinGW32 build works built with "-msse2 -O3".

Change Summary

差異

--- a/source/src/common.cpp
+++ b/source/src/common.cpp
@@ -593,13 +593,13 @@ void DLL_PREFIX ConvertByteToPackedPixelByColorTable2(uint8_t *src, scrntype_t*
593593 __DECL_ALIGNED(32) scrntype_vec8_t tmpd;
594594 __DECL_ALIGNED(32) scrntype_vec8_t tmpdd;
595595 __DECL_ALIGNED(32) scrntype_vec8_t colors;
596- scrntype_vec8_t* vt = (scrntype_vec8_t*)__builtin_assume_aligned(&(tbl->plane_table[0]), sizeof(scrntype_vec8_t));
596+ scrntype_vec8_t* vt = (scrntype_vec8_t*)(&(tbl->plane_table[0]));
597597
598598 uintptr_t disalign = (uintptr_t)dst;
599599 disalign = disalign & (sizeof(scrntype_vec8_t) - 1); //Is align by 128bits or 256bytes?
600600 if(disalign == 0) {
601601 // Yes.
602- scrntype_vec8_t *vdst = (scrntype_vec8_t*)__builtin_assume_aligned(dst, sizeof(scrntype_vec8_t));
602+ scrntype_vec8_t *vdst = (scrntype_vec8_t*)dst;
603603 __DECL_VECTORIZED_LOOP
604604 for(int i = 0; i < bytes; i++) {
605605 tmpd.v = vt[src[i]].v;
@@ -657,7 +657,7 @@ void DLL_PREFIX ConvertByteToSparceUint16(uint8_t *src, uint16_t* dst, int bytes
657657 {
658658
659659 __DECL_ALIGNED(16) uint16_vec8_t tmpd;
660- uint16_vec8_t* vt = (uint16_vec8_t*)__builtin_assume_aligned(&(tbl->plane_table[0]), sizeof(uint16_vec8_t));
660+ uint16_vec8_t* vt = (uint16_vec8_t*)(&(tbl->plane_table[0]));
661661
662662 __DECL_ALIGNED(16) uint16_vec8_t __masks;
663663
@@ -669,7 +669,7 @@ __DECL_VECTORIZED_LOOP
669669 disalign = disalign & 0x0f; //Is align by 128bits?
670670 if(disalign == 0) {
671671 // Yes.
672- uint16_vec8_t *vdst = (uint16_vec8_t*)__builtin_assume_aligned(dst, sizeof(uint16_vec8_t));
672+ uint16_vec8_t *vdst = (uint16_vec8_t*)dst;
673673 __DECL_VECTORIZED_LOOP
674674 for(int i = 0; i < bytes; i++) {
675675 tmpd.v = vt[src[i]].v;
@@ -699,7 +699,7 @@ void DLL_PREFIX ConvertByteToSparceUint8(uint8_t *src, uint16_t* dst, int bytes,
699699 {
700700
701701 __DECL_ALIGNED(16) uint16_vec8_t tmpd;
702- uint16_vec8_t* vt = (uint16_vec8_t*)__builtin_assume_aligned(&(tbl->plane_table[0]), sizeof(uint16_vec8_t));
702+ uint16_vec8_t* vt = (uint16_vec8_t*)(&(tbl->plane_table[0]));
703703
704704 __DECL_ALIGNED(16) uint16_vec8_t __masks;
705705 __DECL_ALIGNED(16) uint8_vec8_t tmpdd;
@@ -712,7 +712,7 @@ __DECL_VECTORIZED_LOOP
712712 disalign = disalign & 0x07; //Is align by 128bits?
713713 if(disalign == 0) {
714714 // Yes.
715- uint8_vec8_t *vdst = (uint8_vec8_t*)__builtin_assume_aligned(dst, sizeof(uint8_vec8_t));
715+ uint8_vec8_t *vdst = (uint8_vec8_t*)dst;
716716 __DECL_VECTORIZED_LOOP
717717 for(int i = 0; i < bytes; i++) {
718718 tmpd.v = vt[src[i]].v;
@@ -745,13 +745,13 @@ void DLL_PREFIX ConvertByteToPackedPixelByColorTable(uint8_t *src, scrntype_t* d
745745
746746 __DECL_ALIGNED(16) uint16_vec8_t tmpd;
747747 __DECL_ALIGNED(32) scrntype_vec8_t tmpdd;
748- uint16_vec8_t* vt = (uint16_vec8_t*)__builtin_assume_aligned(&(tbl->plane_table[0]), sizeof(uint16_vec8_t));
748+ uint16_vec8_t* vt = (uint16_vec8_t*)(&(tbl->plane_table[0]));
749749
750750 uintptr_t disalign = (uintptr_t)dst;
751751 disalign = disalign & 0x0f; //Is align by 128bits?
752752 if(disalign == 0) {
753753 // Yes.
754- scrntype_vec8_t *vdst = (scrntype_vec8_t*)__builtin_assume_aligned(dst, sizeof(scrntype_vec8_t));
754+ scrntype_vec8_t *vdst = (scrntype_vec8_t*)dst;
755755 __DECL_VECTORIZED_LOOP
756756 for(int i = 0; i < bytes; i++) {
757757 tmpd.v = vt[src[i]].v;
@@ -940,7 +940,7 @@ __DECL_VECTORIZED_LOOP
940940 const bool is_render[4] = { src->is_render[0], src->is_render[1], src->is_render[2], src->is_render[3] };
941941 __DECL_ALIGNED(16) uint16_vec8_t tmpd;
942942 __DECL_ALIGNED(32) scrntype_vec8_t tmp_dd;
943- scrntype_vec8_t* vdp = (scrntype_vec8_t*)__builtin_assume_aligned(dst, sizeof(scrntype_vec8_t));
943+ scrntype_vec8_t* vdp = (scrntype_vec8_t*)dst;
944944
945945 x = src->begin_pos;
946946 uint32_t xn = x;
@@ -970,7 +970,7 @@ __DECL_VECTORIZED_LOOP
970970 static const int shift_factor = 3;
971971 #endif
972972 __DECL_ALIGNED(32) scrntype_vec8_t sline;
973- scrntype_vec8_t* vdp2 = (scrntype_vec8_t*)__builtin_assume_aligned(dst2, sizeof(scrntype_vec8_t));
973+ scrntype_vec8_t* vdp2 = (scrntype_vec8_t*)dst2;
974974 __DECL_VECTORIZED_LOOP
975975 for(int i = 0; i < 8; i++) {
976976 sline.w[i] = (scrntype_t)RGBA_COLOR(31, 31, 31, 255);
@@ -1040,7 +1040,7 @@ __DECL_VECTORIZED_LOOP
10401040 const bool is_render[4] = { src->is_render[0], src->is_render[1], src->is_render[2], src->is_render[3] };
10411041 __DECL_ALIGNED(16) uint16_vec8_t tmpd;
10421042 __DECL_ALIGNED(32) scrntype_vec8_t tmp_dd;
1043- scrntype_vec8_t* vdp = (scrntype_vec8_t*)__builtin_assume_aligned(dst, sizeof(scrntype_vec8_t));
1043+ scrntype_vec8_t* vdp = (scrntype_vec8_t*)dst;
10441044
10451045 x = src->begin_pos;
10461046 if(dst2 == NULL) {
@@ -1069,7 +1069,7 @@ __DECL_VECTORIZED_LOOP
10691069 static const int shift_factor = 3;
10701070 #endif
10711071 __DECL_ALIGNED(32) scrntype_vec8_t sline;
1072- scrntype_vec8_t* vdp2 = (scrntype_vec8_t*)__builtin_assume_aligned(dst2, sizeof(scrntype_vec8_t));
1072+ scrntype_vec8_t* vdp2 = (scrntype_vec8_t*)dst2;
10731073 __DECL_VECTORIZED_LOOP
10741074 for(int i = 0; i < 8; i++) {
10751075 sline.w[i] = (scrntype_t)RGBA_COLOR(31, 31, 31, 255);
--- a/source/src/vm/bmjr/memory.cpp
+++ b/source/src/vm/bmjr/memory.cpp
@@ -366,7 +366,7 @@ void MEMORY::draw_screen()
366366 dest[6] = (pat & 0x02) ? fore : back;
367367 dest[7] = (pat & 0x01) ? fore : back;
368368 #else
369- scrntype_vec8_t* vdest = (scrntype_vec8_t*)__builtin_assume_aligned(dest, sizeof(scrntype_vec8_t));
369+ scrntype_vec8_t* vdest = (scrntype_vec8_t*)dest;
370370 *vdest = ConvertByteToMonochromePackedPixel(pat, &bit_table, fore, back);
371371 #endif
372372 }
@@ -403,7 +403,7 @@ void MEMORY::draw_screen()
403403 dest[6] = (pat & 0x02) ? fore : back;
404404 dest[7] = (pat & 0x01) ? fore : back;
405405 #else
406- scrntype_vec8_t* vdest = (scrntype_vec8_t*)__builtin_assume_aligned(dest, sizeof(scrntype_vec8_t));
406+ scrntype_vec8_t* vdest = (scrntype_vec8_t*)dest;
407407 *vdest = ConvertByteToMonochromePackedPixel(pat, &bit_table, fore, back);
408408 #endif
409409 }
--- a/source/src/vm/fm7/vram.cpp
+++ b/source/src/vm/fm7/vram.cpp
@@ -669,8 +669,8 @@ void DISPLAY::CopyDrawnData(scrntype_t* src, scrntype_t* dst, int width, bool sc
669669 #else // 24bit
670670 static const int shift_factor = 3;
671671 #endif
672- scrntype_vec8_t* vsrc = (scrntype_vec8_t*)__builtin_assume_aligned(src, sizeof(scrntype_vec8_t));
673- scrntype_vec8_t* vdst = (scrntype_vec8_t*)__builtin_assume_aligned(dst, sizeof(scrntype_vec8_t));
672+ scrntype_vec8_t* vsrc = (scrntype_vec8_t*)src;
673+ scrntype_vec8_t* vdst = (scrntype_vec8_t*)dst;
674674 __DECL_ALIGNED(32) scrntype_vec8_t tmp_dd;
675675 __DECL_ALIGNED(32) scrntype_vec8_t sline;
676676
@@ -745,10 +745,10 @@ void DISPLAY::GETVRAM_1_400L(int yoff, scrntype_t *p)
745745 if(p == NULL) return;
746746 yoff_d = yoff & 0x7fff;
747747 pixel = gvram_shadow[yoff_d];
748- uint16_vec8_t *ppx = (uint16_vec8_t *)__builtin_assume_aligned(&(bit_trans_table_0[pixel][0]), 16);
748+ uint16_vec8_t *ppx = (uint16_vec8_t *)(&(bit_trans_table_0[pixel][0]));
749749 __DECL_ALIGNED(16) uint16_vec8_t tmp_d;
750750 __DECL_ALIGNED(32) scrntype_vec8_t tmp_dd;
751- scrntype_vec8_t *vp = (scrntype_vec8_t *)__builtin_assume_aligned(p, sizeof(scrntype_vec8_t));
751+ scrntype_vec8_t *vp = (scrntype_vec8_t *)p;
752752
753753 tmp_d.v = ppx->v;
754754 tmp_d.v = tmp_d.v >> 5;
@@ -768,10 +768,10 @@ void DISPLAY::GETVRAM_1_400L_GREEN(int yoff, scrntype_t *p)
768768 if(p == NULL) return;
769769 yoff_d = yoff & 0x7fff;
770770 pixel = gvram_shadow[yoff_d];
771- uint16_vec8_t *ppx = (uint16_vec8_t *)__builtin_assume_aligned(&(bit_trans_table_0[pixel][0]), 16);
771+ uint16_vec8_t *ppx = (uint16_vec8_t *)(&(bit_trans_table_0[pixel][0]));
772772 __DECL_ALIGNED(16) uint16_vec8_t tmp_d;
773773 __DECL_ALIGNED(32) scrntype_vec8_t tmp_dd;
774- scrntype_vec8_t *vp = (scrntype_vec8_t *)__builtin_assume_aligned(p, sizeof(scrntype_vec8_t));
774+ scrntype_vec8_t *vp = (scrntype_vec8_t *)p;
775775
776776 tmp_d.v = ppx->v;
777777 tmp_d.v = tmp_d.v >> 5;
@@ -844,29 +844,29 @@ void DISPLAY::GETVRAM_4096(int yoff, scrntype_t *p, scrntype_t *px,
844844 __DECL_ALIGNED(16) uint16_vec8_t tmp_g, tmp_r, tmp_b;
845845 __v8hi *vp0, *vp1, *vp2, *vp3;
846846 // G
847- vp0 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_0[gg[0]][0]), 16);
848- vp1 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_1[gg[1]][0]), 16);
849- vp2 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_2[gg[2]][0]), 16);
850- vp3 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_3[gg[3]][0]), 16);
847+ vp0 = (__v8hi*)(&(bit_trans_table_0[gg[0]][0]));
848+ vp1 = (__v8hi*)(&(bit_trans_table_1[gg[1]][0]));
849+ vp2 = (__v8hi*)(&(bit_trans_table_2[gg[2]][0]));
850+ vp3 = (__v8hi*)(&(bit_trans_table_3[gg[3]][0]));
851851 tmp_g.v = *vp0;
852852 tmp_g.v = tmp_g.v | *vp1;
853853 tmp_g.v = tmp_g.v | *vp2;
854854 tmp_g.v = tmp_g.v | *vp3;
855855 // R
856- vp0 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_0[rr[0]][0]), 16);
857- vp1 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_1[rr[1]][0]), 16);
858- vp2 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_2[rr[2]][0]), 16);
859- vp3 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_3[rr[3]][0]), 16);
856+ vp0 = (__v8hi*)(&(bit_trans_table_0[rr[0]][0]));
857+ vp1 = (__v8hi*)(&(bit_trans_table_1[rr[1]][0]));
858+ vp2 = (__v8hi*)(&(bit_trans_table_2[rr[2]][0]));
859+ vp3 = (__v8hi*)(&(bit_trans_table_3[rr[3]][0]));
860860 tmp_r.v = *vp0;
861861 tmp_r.v = tmp_r.v | *vp1;
862862 tmp_r.v = tmp_r.v | *vp2;
863863 tmp_r.v = tmp_r.v | *vp3;
864864
865865 // B
866- vp0 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_0[bb[0]][0]), 16);
867- vp1 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_1[bb[1]][0]), 16);
868- vp2 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_2[bb[2]][0]), 16);
869- vp3 = (__v8hi*)__builtin_assume_aligned(&(bit_trans_table_3[bb[3]][0]), 16);
866+ vp0 = (__v8hi*)(&(bit_trans_table_0[bb[0]][0]));
867+ vp1 = (__v8hi*)(&(bit_trans_table_1[bb[1]][0]));
868+ vp2 = (__v8hi*)(&(bit_trans_table_2[bb[2]][0]));
869+ vp3 = (__v8hi*)(&(bit_trans_table_3[bb[3]][0]));
870870 tmp_b.v = *vp0;
871871 tmp_b.v = tmp_b.v | *vp1;
872872 tmp_b.v = tmp_b.v | *vp2;
@@ -881,8 +881,8 @@ void DISPLAY::GETVRAM_4096(int yoff, scrntype_t *p, scrntype_t *px,
881881 pixels.v = pixels.v & *mp;
882882
883883
884- scrntype_vec8_t *vp = (scrntype_vec8_t*)__builtin_assume_aligned(p, sizeof(scrntype_vec8_t));
885- scrntype_vec8_t *dp = (scrntype_vec8_t*)__builtin_assume_aligned(tmp_dd, sizeof(scrntype_vec8_t));
884+ scrntype_vec8_t *vp = (scrntype_vec8_t*)p;
885+ scrntype_vec8_t *dp = (scrntype_vec8_t*)tmp_dd;
886886 #if !defined(FIXED_FRAMEBUFFER_SIZE)
887887 __DECL_VECTORIZED_LOOP
888888 for(int i = 0; i < 8; i++) {
@@ -894,7 +894,7 @@ __DECL_VECTORIZED_LOOP
894894 for(int i = 0; i < 8; i++) {
895895 tmp_dd[i * 2] = tmp_dd[i * 2 + 1] = analog_palette_pixel[pixels.w[i]];;
896896 }
897- scrntype_vec8_t *vpx = (scrntype_vec8_t*)__builtin_assume_aligned(px, sizeof(scrntype_vec8_t));
897+ scrntype_vec8_t *vpx = (scrntype_vec8_t*)px;
898898 __DECL_ALIGNED(32) scrntype_vec8_t vmask;
899899 __DECL_VECTORIZED_LOOP
900900 for(int i = 0; i < 2; i++) {
@@ -978,12 +978,12 @@ void DISPLAY::GETVRAM_256k(int yoff, scrntype_t *p, scrntype_t *px, bool scan_li
978978 bb[4] = gvram_shadow[yoff_d1 + 0x18000];
979979 bb[5] = gvram_shadow[yoff_d1 + 0x1a000];
980980
981- vp0 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_0[bb[0]][0]), 16);
982- vp1 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_1[bb[1]][0]), 16);
983- vp2 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_2[bb[2]][0]), 16);
984- vp3 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_3[bb[3]][0]), 16);
985- vp4 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_4[bb[4]][0]), 16);
986- vp5 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_5[bb[5]][0]), 16);
981+ vp0 = (uint16_vec8_t*)(&(bit_trans_table_0[bb[0]][0]));
982+ vp1 = (uint16_vec8_t*)(&(bit_trans_table_1[bb[1]][0]));
983+ vp2 = (uint16_vec8_t*)(&(bit_trans_table_2[bb[2]][0]));
984+ vp3 = (uint16_vec8_t*)(&(bit_trans_table_3[bb[3]][0]));
985+ vp4 = (uint16_vec8_t*)(&(bit_trans_table_4[bb[4]][0]));
986+ vp5 = (uint16_vec8_t*)(&(bit_trans_table_5[bb[5]][0]));
987987 _btmp.v = vp0->v;
988988 _btmp.v = _btmp.v | vp1->v;
989989 _btmp.v = _btmp.v | vp2->v;
@@ -1008,12 +1008,12 @@ __DECL_VECTORIZED_LOOP
10081008 rr[4] = gvram_shadow[yoff_d1 + 0x1c000];
10091009 rr[5] = gvram_shadow[yoff_d1 + 0x1e000];
10101010
1011- vp0 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_0[rr[0]][0]), 16);
1012- vp1 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_1[rr[1]][0]), 16);
1013- vp2 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_2[rr[2]][0]), 16);
1014- vp3 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_3[rr[3]][0]), 16);
1015- vp4 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_4[rr[4]][0]), 16);
1016- vp5 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_5[rr[5]][0]), 16);
1011+ vp0 = (uint16_vec8_t*)(&(bit_trans_table_0[rr[0]][0]));
1012+ vp1 = (uint16_vec8_t*)(&(bit_trans_table_1[rr[1]][0]));
1013+ vp2 = (uint16_vec8_t*)(&(bit_trans_table_2[rr[2]][0]));
1014+ vp3 = (uint16_vec8_t*)(&(bit_trans_table_3[rr[3]][0]));
1015+ vp4 = (uint16_vec8_t*)(&(bit_trans_table_4[rr[4]][0]));
1016+ vp5 = (uint16_vec8_t*)(&(bit_trans_table_5[rr[5]][0]));
10171017 _rtmp.v = vp0->v;
10181018 _rtmp.v = _rtmp.v | vp1->v;
10191019 _rtmp.v = _rtmp.v | vp2->v;
@@ -1038,12 +1038,12 @@ __DECL_VECTORIZED_LOOP
10381038 gg[4] = gvram_shadow[yoff_d1 + 0x20000];
10391039 gg[5] = gvram_shadow[yoff_d1 + 0x22000];
10401040
1041- vp0 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_0[gg[0]][0]), 16);
1042- vp1 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_1[gg[1]][0]), 16);
1043- vp2 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_2[gg[2]][0]), 16);
1044- vp3 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_3[gg[3]][0]), 16);
1045- vp4 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_4[gg[4]][0]), 16);
1046- vp5 = (uint16_vec8_t*)__builtin_assume_aligned(&(bit_trans_table_5[gg[5]][0]), 16);
1041+ vp0 = (uint16_vec8_t*)(&(bit_trans_table_0[gg[0]][0]));
1042+ vp1 = (uint16_vec8_t*)(&(bit_trans_table_1[gg[1]][0]));
1043+ vp2 = (uint16_vec8_t*)(&(bit_trans_table_2[gg[2]][0]));
1044+ vp3 = (uint16_vec8_t*)(&(bit_trans_table_3[gg[3]][0]));
1045+ vp4 = (uint16_vec8_t*)(&(bit_trans_table_4[gg[4]][0]));
1046+ vp5 = (uint16_vec8_t*)(&(bit_trans_table_5[gg[5]][0]));
10471047 _gtmp.v = vp0->v;
10481048 _gtmp.v = _gtmp.v | vp1->v;
10491049 _gtmp.v = _gtmp.v | vp2->v;
@@ -1057,7 +1057,7 @@ __DECL_VECTORIZED_LOOP
10571057 }
10581058 }
10591059
1060- scrntype_vec8_t* vpp = (scrntype_vec8_t*)__builtin_assume_aligned(p, sizeof(scrntype_vec8_t));
1060+ scrntype_vec8_t* vpp = (scrntype_vec8_t*)p;
10611061 scrntype_vec8_t* dp = (scrntype_vec8_t*)tmp_dd;
10621062 #if !defined(FIXED_FRAMEBUFFER_SIZE)
10631063 __DECL_VECTORIZED_LOOP
@@ -1075,7 +1075,7 @@ __DECL_VECTORIZED_LOOP
10751075 for(int i = 0; i < 2; i++) {
10761076 vpp[i].v = dp[i].v;
10771077 }
1078- scrntype_vec8_t* vpx = (scrntype_vec8_t*)__builtin_assume_aligned(px, sizeof(scrntype_vec8_t));
1078+ scrntype_vec8_t* vpx = (scrntype_vec8_t*)px;
10791079 if(scan_line) {
10801080 /* Fancy scanline */
10811081 __DECL_VECTORIZED_LOOP
--- a/source/src/vm/fmtowns/towns_vram.cpp
+++ b/source/src/vm/fmtowns/towns_vram.cpp
@@ -537,7 +537,7 @@ void TOWNS_CRTC::render_line_256_boundary(int layer, scrntype_t *framebuffer, ui
537537 int nwords = (int)words / 8;
538538 int ip;
539539 __DECL_ALIGNED(16) uint8_t src[8];
540- scrntype_t *pdst = __builtin_assume_aligned(framebuffer, sizeof(scrntype_t));
540+ scrntype_t *pdst = framebuffer;
541541 uint8_t *pp = (uint8_t *)vramptr;
542542
543543 if(framebuffer == NULL) return;
Show on old repository browser