• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

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


Commit MetaInfo

Revision813614437a72ddb736e676147522fa1112275ba2 (tree)
Zeit2018-03-15 23:42:40
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][FM7][VRAM] Add DECL_VECTORIZE_LOOP decl. to indicate expect to use vectorize (a.k.a. SIMD instructions).

Ändern Zusammenfassung

Diff

--- a/source/src/common.h
+++ b/source/src/common.h
@@ -506,6 +506,16 @@ uint16_t DLL_PREFIX EndianToLittle_WORD(uint16_t x);
506506 #define B_OF_COLOR(c) (((c) ) & 0xff)
507507 #define A_OF_COLOR(c) (((c) >> 24) & 0xff)
508508 #endif
509+/*
510+ * Below macros are hint for SIMD.
511+ */
512+#if defined(__clang__)
513+ #define __DECL_VECTORIZED_LOOP _Pragma("clang loop vectorize(enable) interleave(enable)")
514+#elif defined(__GNUC__)
515+ #define __DECL_VECTORIZED_LOOP _Pragma("GCC ivdep")
516+#else
517+ #define __DECL_VECTORIZED_LOOP
518+#endif
509519
510520 // wav file header
511521 #pragma pack(1)
--- a/source/src/vm/fm7/vram.cpp
+++ b/source/src/vm/fm7/vram.cpp
@@ -94,58 +94,35 @@ void DISPLAY::GETVRAM_8_200L(int yoff, scrntype_t *p,
9494 uint16_t tmp_d[8];
9595
9696 scrntype_t tmp_dd[8];
97+
98+__DECL_VECTORIZED_LOOP
9799 for(int i = 0; i < 8; i++) {
98- tmp_d[i] = pg[i];
99- }
100- for(int i = 0; i < 8; i++) {
101- tmp_d[i] = tmp_d[i] | pr[i];
102- }
103- for(int i = 0; i < 8; i++) {
104- tmp_d[i] = tmp_d[i] | pb[i];
105- }
106- for(int i = 0; i < 8; i++) {
107- tmp_d[i] = tmp_d[i] >> 5;
100+ tmp_d[i] = pg[i];
101+ tmp_d[i] |= pr[i];
102+ tmp_d[i] |= pb[i];
103+ tmp_d[i] >>= 5;
108104 }
105+__DECL_VECTORIZED_LOOP
109106 for(int i = 0; i < 8; i++) {
110107 tmp_dd[i] = dpalette_pixel[tmp_d[i]];
111- }
112- for(int i = 0; i < 8; i++) {
113108 p[i] = tmp_dd[i];
114109 }
115110 #if defined(FIXED_FRAMEBUFFER_SIZE)
116111 if(scan_line) {
117-#if 0
118- static const scrntype_t dblack[8] = {0, 0, 0, 0, 0, 0, 0, 0};
119- for(int i = 0; i < 8; i++) {
120- px[i] = dblack[i];
121- }
122-#else /* Fancy scanline */
123- static const scrntype_t dblack[8] = { RGB_COLOR(32, 32, 32),
124- RGB_COLOR(32, 32, 32),
125- RGB_COLOR(32, 32, 32),
126- RGB_COLOR(32, 32, 32),
127- RGB_COLOR(32, 32, 32),
128- RGB_COLOR(32, 32, 32),
129- RGB_COLOR(32, 32, 32),
130- RGB_COLOR(32, 32, 32)};
131-
132- for(int i = 0; i < 8; i++) {
133-#if defined(_RGB888) || defined(_RGBA888)
134- tmp_dd[i] = tmp_dd[i] >> 3;
135-#elif defined(_RGB555)
136- tmp_dd[i] = tmp_dd[i] >> 2;
137-#elif defined(_RGB565)
138- tmp_dd[i] = tmp_dd[i] >> 2;
139-#endif
140- }
141- for(int i = 0; i < 8; i++) {
142- tmp_dd[i] = tmp_dd[i] & RGBA_COLOR(31, 31, 31, 255);
143- }
112+/* Fancy scanline */
113+ #if defined(_RGB555) || defined(_RGBA565)
114+ static const int shift_factor = 2;
115+ #else // 24bit
116+ static const int shift_factor = 3;
117+ #endif
118+__DECL_VECTORIZED_LOOP
144119 for(int i = 0; i < 8; i++) {
120+ tmp_dd[i] = (tmp_dd[i] >> shift_factor) & (const scrntype_t)RGBA_COLOR(31, 31, 31, 255);;
121+ //tmp_dd[i] = tmp_dd[i] & (const scrntype_t)RGBA_COLOR(31, 31, 31, 255);
145122 px[i] = tmp_dd[i];
146123 }
147-#endif
148124 } else {
125+__DECL_VECTORIZED_LOOP
149126 for(int i = 0; i < 8; i++) {
150127 px[i] = tmp_dd[i];
151128 }
@@ -185,17 +162,15 @@ void DISPLAY::GETVRAM_8_400L(int yoff, scrntype_t *p,
185162 uint16_t *pb = &(bit_trans_table_2[b][0]);
186163 uint16_t tmp_d[8];
187164 scrntype_t tmp_dd[8];
188-
165+
166+__DECL_VECTORIZED_LOOP
189167 for(int i = 0; i < 8; i++) {
190168 tmp_d[i] = pg[i] | pr[i] | pb[i];
191- }
192- for(int i = 0; i < 8; i++) {
193169 tmp_d[i] = tmp_d[i] >> 5;
194- }
170+
171+__DECL_VECTORIZED_LOOP
195172 for(int i = 0; i < 8; i++) {
196173 tmp_dd[i] = dpalette_pixel[tmp_d[i]];
197- }
198- for(int i = 0; i < 8; i++) {
199174 p[i] = tmp_dd[i];
200175 }
201176 }
@@ -248,25 +223,17 @@ void DISPLAY::GETVRAM_256k(int yoff, scrntype_t *p, scrntype_t *px, bool scan_li
248223 p3 = &(bit_trans_table_3[bb[3]][0]);
249224 p4 = &(bit_trans_table_4[bb[4]][0]);
250225 p5 = &(bit_trans_table_5[bb[5]][0]);
226+__DECL_VECTORIZED_LOOP
251227 for(int i = 0; i < 8; i++) {
252228 _btmp[i] = p0[i];
253- }
254- for(int i = 0; i < 8; i++) {
255229 _btmp[i] = _btmp[i] | p1[i];
256- }
257- for(int i = 0; i < 8; i++) {
258230 _btmp[i] = _btmp[i] | p2[i];
259- }
260- for(int i = 0; i < 8; i++) {
261231 _btmp[i] = _btmp[i] | p3[i];
262- }
263- for(int i = 0; i < 8; i++) {
264232 _btmp[i] = _btmp[i] | p4[i];
265- }
266- for(int i = 0; i < 8; i++) {
267233 _btmp[i] = _btmp[i] | p5[i];
268234 }
269235 } else {
236+__DECL_VECTORIZED_LOOP
270237 for(int i = 0; i < 8; i++) {
271238 _btmp[i] = 0;
272239 }
@@ -289,25 +256,17 @@ void DISPLAY::GETVRAM_256k(int yoff, scrntype_t *p, scrntype_t *px, bool scan_li
289256 p3 = &(bit_trans_table_3[rr[3]][0]);
290257 p4 = &(bit_trans_table_4[rr[4]][0]);
291258 p5 = &(bit_trans_table_5[rr[5]][0]);
259+__DECL_VECTORIZED_LOOP
292260 for(int i = 0; i < 8; i++) {
293261 _rtmp[i] = p0[i];
294- }
295- for(int i = 0; i < 8; i++) {
296262 _rtmp[i] = _rtmp[i] | p1[i];
297- }
298- for(int i = 0; i < 8; i++) {
299263 _rtmp[i] = _rtmp[i] | p2[i];
300- }
301- for(int i = 0; i < 8; i++) {
302264 _rtmp[i] = _rtmp[i] | p3[i];
303- }
304- for(int i = 0; i < 8; i++) {
305265 _rtmp[i] = _rtmp[i] | p4[i];
306- }
307- for(int i = 0; i < 8; i++) {
308266 _rtmp[i] = _rtmp[i] | p5[i];
309267 }
310268 } else {
269+__DECL_VECTORIZED_LOOP
311270 for(int i = 0; i < 8; i++) {
312271 _rtmp[i] = 0;
313272 }
@@ -330,67 +289,39 @@ void DISPLAY::GETVRAM_256k(int yoff, scrntype_t *p, scrntype_t *px, bool scan_li
330289 p3 = &(bit_trans_table_3[gg[3]][0]);
331290 p4 = &(bit_trans_table_4[gg[4]][0]);
332291 p5 = &(bit_trans_table_5[gg[5]][0]);
292+__DECL_VECTORIZED_LOOP
333293 for(int i = 0; i < 8; i++) {
334294 _gtmp[i] = p0[i];
335- }
336- for(int i = 0; i < 8; i++) {
337295 _gtmp[i] = _gtmp[i] | p1[i];
338- }
339- for(int i = 0; i < 8; i++) {
340296 _gtmp[i] = _gtmp[i] | p2[i];
341- }
342- for(int i = 0; i < 8; i++) {
343297 _gtmp[i] = _gtmp[i] | p3[i];
344- }
345- for(int i = 0; i < 8; i++) {
346298 _gtmp[i] = _gtmp[i] | p4[i];
347- }
348- for(int i = 0; i < 8; i++) {
349299 _gtmp[i] = _gtmp[i] | p5[i];
350300 }
351301 } else {
302+__DECL_VECTORIZED_LOOP
352303 for(int i = 0; i < 8; i++) {
353304 _gtmp[i] = 0;
354305 }
355306 }
356307 #if !defined(FIXED_FRAMEBUFFER_SIZE)
308+__DECL_VECTORIZED_LOOP
357309 for(int i = 0; i < 8; i++) {
358310 tmp_dd[i] = RGB_COLOR(_rtmp[i], _gtmp[i], _btmp[i]);
359- }
360- for(int i = 0; i < 8; i++) {
361311 p[i] = tmp_dd[i];
362312 }
363313 #else
314+__DECL_VECTORIZED_LOOP
364315 for(int i = 0; i < 8; i++) {
365316 tmp_dd[i * 2] = tmp_dd[i * 2 + 1] = RGB_COLOR(_rtmp[i], _gtmp[i], _btmp[i]);
366317 }
318+__DECL_VECTORIZED_LOOP
367319 for(int i = 0; i < 16; i++) {
368320 p[i] = tmp_dd[i];
369321 }
370322 if(scan_line) {
371-#if 0
372- static const scrntype_t dblack[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
373- for(int i = 0; i < 16; i++) {
374- px[i] = dblack[i];
375- }
376-#else /* Fancy scanline */
377- static const scrntype_t dblack[16] = { RGB_COLOR(32, 32, 32),
378- RGB_COLOR(32, 32, 32),
379- RGB_COLOR(32, 32, 32),
380- RGB_COLOR(32, 32, 32),
381- RGB_COLOR(32, 32, 32),
382- RGB_COLOR(32, 32, 32),
383- RGB_COLOR(32, 32, 32),
384- RGB_COLOR(32, 32, 32),
385- RGB_COLOR(32, 32, 32),
386- RGB_COLOR(32, 32, 32),
387- RGB_COLOR(32, 32, 32),
388- RGB_COLOR(32, 32, 32),
389- RGB_COLOR(32, 32, 32),
390- RGB_COLOR(32, 32, 32),
391- RGB_COLOR(32, 32, 32),
392- RGB_COLOR(32, 32, 32)};
393-
323+/* Fancy scanline */
324+__DECL_VECTORIZED_LOOP
394325 for(int i = 0; i < 16; i++) {
395326 #if defined(_RGB888) || defined(_RGBA888)
396327 tmp_dd[i] = tmp_dd[i] >> 3;
@@ -400,14 +331,13 @@ void DISPLAY::GETVRAM_256k(int yoff, scrntype_t *p, scrntype_t *px, bool scan_li
400331 tmp_dd[i] = tmp_dd[i] >> 2;
401332 #endif
402333 }
334+__DECL_VECTORIZED_LOOP
403335 for(int i = 0; i < 16; i++) {
404336 tmp_dd[i] = tmp_dd[i] & RGBA_COLOR(31, 31, 31, 256);
405- }
406- for(int i = 0; i < 16; i++) {
407337 px[i] = tmp_dd[i];
408338 }
409-#endif
410339 } else {
340+__DECL_VECTORIZED_LOOP
411341 for(int i = 0; i < 16; i++) {
412342 px[i] = tmp_dd[i];
413343 }
@@ -479,16 +409,11 @@ void DISPLAY::GETVRAM_4096(int yoff, scrntype_t *p, scrntype_t *px,
479409 p1 = &(bit_trans_table_1[gg[1]][0]);
480410 p2 = &(bit_trans_table_2[gg[2]][0]);
481411 p3 = &(bit_trans_table_3[gg[3]][0]);
412+__DECL_VECTORIZED_LOOP
482413 for(int i = 0; i < 8; i++) {
483414 tmp_g[i] = p0[i];
484- }
485- for(int i = 0; i < 8; i++) {
486415 tmp_g[i] = tmp_g[i] | p1[i];
487- }
488- for(int i = 0; i < 8; i++) {
489416 tmp_g[i] = tmp_g[i] | p2[i];
490- }
491- for(int i = 0; i < 8; i++) {
492417 tmp_g[i] = tmp_g[i] | p3[i];
493418 }
494419 // R
@@ -496,16 +421,11 @@ void DISPLAY::GETVRAM_4096(int yoff, scrntype_t *p, scrntype_t *px,
496421 p1 = &(bit_trans_table_1[rr[1]][0]);
497422 p2 = &(bit_trans_table_2[rr[2]][0]);
498423 p3 = &(bit_trans_table_3[rr[3]][0]);
424+__DECL_VECTORIZED_LOOP
499425 for(int i = 0; i < 8; i++) {
500426 tmp_r[i] = p0[i];
501- }
502- for(int i = 0; i < 8; i++) {
503427 tmp_r[i] = tmp_r[i] | p1[i];
504- }
505- for(int i = 0; i < 8; i++) {
506428 tmp_r[i] = tmp_r[i] | p2[i];
507- }
508- for(int i = 0; i < 8; i++) {
509429 tmp_r[i] = tmp_r[i] | p3[i];
510430 }
511431 // B
@@ -513,73 +433,42 @@ void DISPLAY::GETVRAM_4096(int yoff, scrntype_t *p, scrntype_t *px,
513433 p1 = &(bit_trans_table_1[bb[1]][0]);
514434 p2 = &(bit_trans_table_2[bb[2]][0]);
515435 p3 = &(bit_trans_table_3[bb[3]][0]);
436+__DECL_VECTORIZED_LOOP
516437 for(int i = 0; i < 8; i++) {
517438 tmp_b[i] = p0[i];
518- }
519- for(int i = 0; i < 8; i++) {
520439 tmp_b[i] = tmp_b[i] | p1[i];
521- }
522- for(int i = 0; i < 8; i++) {
523440 tmp_b[i] = tmp_b[i] | p2[i];
524- }
525- for(int i = 0; i < 8; i++) {
526441 tmp_b[i] = tmp_b[i] | p3[i];
527442 }
443+__DECL_VECTORIZED_LOOP
528444 for(int i = 0; i < 8; i++) {
445+ tmp_g[i] <<= 4;
529446 pixels[i] = tmp_b[i] >> 4;
530- }
531- for(int i = 0; i < 8; i++) {
532447 pixels[i] = pixels[i] | tmp_r[i];
533- }
534- for(int i = 0; i < 8; i++) {
535- pixels[i] = pixels[i] | tmp_g[i] << 4;
536- }
537-
538- for(int i = 0; i < 8; i++) {
448+ pixels[i] = pixels[i] | tmp_g[i];
539449 pixels[i] = pixels[i] & __masks[i];
540450 }
541451 //for(int i = 0; i < 8; i++) {
542452 // pixels[i] = pixels[i] & mask;
543453 //}
544454 #if !defined(FIXED_FRAMEBUFFER_SIZE)
455+__DECL_VECTORIZED_LOOP
545456 for(int i = 0; i < 8; i++) {
546457 tmp_dd[i] = analog_palette_pixel[pixels[i]];
547- }
548-
549- for(int i = 0; i < 8; i++) {
550458 p[i] = tmp_dd[i];
551459 }
552460 #else
461+__DECL_VECTORIZED_LOOP
553462 for(int i = 0; i < 8; i++) {
554463 tmp_dd[i * 2] = tmp_dd[i * 2 + 1] = analog_palette_pixel[pixels[i]];;
555464 }
465+__DECL_VECTORIZED_LOOP
556466 for(int i = 0; i < 16; i++) {
557467 p[i] = tmp_dd[i];
558468 }
559469 if(scan_line) {
560-#if 0
561- static const scrntype_t dblack[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
562- for(int i = 0; i < 16; i++) {
563- px[i] = dblack[i];
564- }
565-#else /* Fancy scanline */
566- static const scrntype_t dblack[16] = { RGB_COLOR(32, 32, 32),
567- RGB_COLOR(32, 32, 32),
568- RGB_COLOR(32, 32, 32),
569- RGB_COLOR(32, 32, 32),
570- RGB_COLOR(32, 32, 32),
571- RGB_COLOR(32, 32, 32),
572- RGB_COLOR(32, 32, 32),
573- RGB_COLOR(32, 32, 32),
574- RGB_COLOR(32, 32, 32),
575- RGB_COLOR(32, 32, 32),
576- RGB_COLOR(32, 32, 32),
577- RGB_COLOR(32, 32, 32),
578- RGB_COLOR(32, 32, 32),
579- RGB_COLOR(32, 32, 32),
580- RGB_COLOR(32, 32, 32),
581- RGB_COLOR(32, 32, 32)};
582-
470+/* Fancy scanline */
471+__DECL_VECTORIZED_LOOP
583472 for(int i = 0; i < 16; i++) {
584473 #if defined(_RGB888) || defined(_RGBA888)
585474 tmp_dd[i] = tmp_dd[i] >> 3;
@@ -589,14 +478,13 @@ void DISPLAY::GETVRAM_4096(int yoff, scrntype_t *p, scrntype_t *px,
589478 tmp_dd[i] = tmp_dd[i] >> 2;
590479 #endif
591480 }
481+__DECL_VECTORIZED_LOOP
592482 for(int i = 0; i < 16; i++) {
593- tmp_dd[i] = tmp_dd[i] & RGBA_COLOR(31, 31, 31, 255);
594- }
595- for(int i = 0; i < 16; i++) {
483+ tmp_dd[i] = tmp_dd[i] & (const scrntype_t)RGBA_COLOR(31, 31, 31, 255);
596484 px[i] = tmp_dd[i];
597485 }
598-#endif
599486 } else {
487+__DECL_VECTORIZED_LOOP
600488 for(int i = 0; i < 16; i++) {
601489 px[i] = tmp_dd[i];
602490 }
@@ -658,16 +546,11 @@ void DISPLAY::draw_screen2()
658546 if(crt_flag_bak) {
659547 scrntype_t *ppp;
660548 if(display_mode == DISPLAY_MODE_8_200L) {
661-#if 1
662549 # if !defined(FIXED_FRAMEBUFFER_SIZE)
663550 emu->set_vm_screen_size(640, 200, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
664551 # endif
665552 emu->set_vm_screen_lines(200);
666-#endif
667553 #if !defined(FIXED_FRAMEBUFFER_SIZE)
668-#if defined(_OPENMP)
669-//#pragma omp parallel for shared(vram_draw_table), private(ppp, yy)
670-#endif
671554 for(y = 0; y < 200; y += 8) {
672555 for(yy = 0; yy < 8; yy++) {
673556 vram_draw_table[y + yy] = false;
@@ -676,9 +559,6 @@ void DISPLAY::draw_screen2()
676559 }
677560 }
678561 #else
679-#if defined(_OPENMP)
680-//#pragma omp parallel for shared(vram_draw_table), private(ppp, yy)
681-#endif
682562 for(y = 0; y < 400; y += 8) {
683563 for(yy = 0; yy < 8; yy++) {
684564 vram_draw_table[y + yy] = false;
@@ -688,13 +568,8 @@ void DISPLAY::draw_screen2()
688568 }
689569 #endif
690570 } else if(display_mode == DISPLAY_MODE_8_400L) {
691-#if 1
692571 emu->set_vm_screen_lines(400);
693572 emu->set_vm_screen_size(640, 400, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
694-#endif
695-#if defined(_OPENMP)
696-//#pragma omp parallel for shared(vram_draw_table), private(ppp, yy)
697-#endif
698573 for(y = 0; y < 400; y += 8) {
699574 for(yy = 0; yy < 8; yy++) {
700575 vram_draw_table[y + yy] = false;
@@ -703,16 +578,11 @@ void DISPLAY::draw_screen2()
703578 }
704579 }
705580 } else { // 320x200
706-#if 1
707581 # if !defined(FIXED_FRAMEBUFFER_SIZE)
708582 emu->set_vm_screen_size(320, 200, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
709583 # endif
710584 emu->set_vm_screen_lines(200);
711-#endif
712585 #if !defined(FIXED_FRAMEBUFFER_SIZE)
713-#if defined(_OPENMP)
714-//#pragma omp parallel for shared(vram_draw_table), private(ppp, yy)
715-#endif
716586 for(y = 0; y < 200; y += 8) {
717587 for(yy = 0; yy < 8; yy++) {
718588 vram_draw_table[y + yy] = false;
@@ -721,9 +591,6 @@ void DISPLAY::draw_screen2()
721591 }
722592 }
723593 #else
724-#if defined(_OPENMP)
725-//#pragma omp parallel for shared(vram_draw_table), private(ppp, yy)
726-#endif
727594 for(y = 0; y < 400; y++) {
728595 for(yy = 0; yy < 8; yy++) {
729596 vram_draw_table[y + yy] = false;
@@ -740,25 +607,13 @@ void DISPLAY::draw_screen2()
740607 crt_flag_bak = crt_flag;
741608 if(!vram_wrote_shadow) return;
742609 vram_wrote_shadow = false;
743- //if(palette_changed) {
744- // for(y = 0; y < 400; y++) {
745- // vram_draw_table[y] = true;
746- // }
747- // palette_changed = false;
748- //}
749610 if(display_mode == DISPLAY_MODE_8_200L) {
750611 int ii;
751-#if 1
752612 # if !defined(FIXED_FRAMEBUFFER_SIZE)
753613 emu->set_vm_screen_size(640, 200, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
754614 # endif
755615 emu->set_vm_screen_lines(200);
756-#endif
757616 yoff = 0;
758- //rgbmask = ~multimode_dispmask;
759-#if defined(_OPENMP)
760-//#pragma omp parallel for shared(vram_draw_table), private(p, p2, yoff, ii, x, yy)
761-#endif
762617 for(y = 0; y < 200; y += 8) {
763618 for(yy = 0; yy < 8; yy++) {
764619
@@ -808,21 +663,16 @@ void DISPLAY::draw_screen2()
808663 }
809664 # if defined(_FM77AV_VARIANTS)
810665 if(display_mode == DISPLAY_MODE_4096) {
811-#if 1
812666 # if !defined(FIXED_FRAMEBUFFER_SIZE)
813667 emu->set_vm_screen_size(320, 200, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
814668 # endif
815669 emu->set_vm_screen_lines(200);
816-#endif
817670 uint32_t mask = 0;
818671 int ii;
819672 yoff = 0;
820673 if(!multimode_dispflags[0]) mask = 0x00f;
821674 if(!multimode_dispflags[1]) mask = mask | 0x0f0;
822675 if(!multimode_dispflags[2]) mask = mask | 0xf00;
823-#if defined(_OPENMP)
824-//#pragma omp parallel for shared(vram_draw_table), private(p, p2, yoff, ii, x, yy)
825-#endif
826676 for(y = 0; y < 200; y += 4) {
827677 for(yy = 0; yy < 4; yy++) {
828678 if(!vram_draw_table[y + yy]) continue;
@@ -877,15 +727,10 @@ void DISPLAY::draw_screen2()
877727 # if defined(_FM77AV40) || defined(_FM77AV40EX) || defined(_FM77AV40SX)
878728 else if(display_mode == DISPLAY_MODE_8_400L) {
879729 int ii;
880-#if 1
881730 emu->set_vm_screen_size(640, 400, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
882731 emu->set_vm_screen_lines(400);
883-#endif
884732 yoff = 0;
885733 //rgbmask = ~multimode_dispmask;
886-#if defined(_OPENMP)
887-//#pragma omp parallel for shared(vram_draw_table), private(pp, p, yoff, x, ii, yy)
888-#endif
889734 for(y = 0; y < 400; y += 8) {
890735 for(yy = 0; yy < 8; yy++) {
891736 if(!vram_draw_table[y + yy]) continue;
@@ -921,17 +766,12 @@ void DISPLAY::draw_screen2()
921766 return;
922767 } else if(display_mode == DISPLAY_MODE_256k) {
923768 int ii;
924-#if 1
925769 # if !defined(FIXED_FRAMEBUFFER_SIZE)
926770 emu->set_vm_screen_size(320, 200, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH_ASPECT, WINDOW_HEIGHT_ASPECT);
927771 # endif
928772 emu->set_vm_screen_lines(200);
929-#endif
930773 //rgbmask = ~multimode_dispmask;
931774 //
932-#if defined(_OPENMP)
933-//#pragma omp parallel for shared(vram_draw_table), private(pp, p, yoff, x, ii, yy)
934-#endif
935775 for(y = 0; y < 200; y += 4) {
936776 for(yy = 0; yy < 4; yy++) {
937777 if(!vram_draw_table[y + yy]) continue;
Show on old repository browser