mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 07:31:15 +00:00
Add fallthrough annotations to Duff-esque loops.
This commit is contained in:
parent
8540e7a953
commit
992a47c196
@ -470,7 +470,7 @@ void Base<personality>::draw_yamaha(uint8_t y, int start, int end) {
|
|||||||
switch(offset) {
|
switch(offset) {
|
||||||
case 0:
|
case 0:
|
||||||
do {
|
do {
|
||||||
pixel_target_[column+0] = active_palette[line_buffer.bitmap[start] >> 4];
|
pixel_target_[column+0] = active_palette[line_buffer.bitmap[start] >> 4]; [[fallthrough]];
|
||||||
case 1: pixel_target_[column+1] = active_palette[line_buffer.bitmap[start] & 0xf];
|
case 1: pixel_target_[column+1] = active_palette[line_buffer.bitmap[start] & 0xf];
|
||||||
++start;
|
++start;
|
||||||
column += 2;
|
column += 2;
|
||||||
@ -490,9 +490,9 @@ void Base<personality>::draw_yamaha(uint8_t y, int start, int end) {
|
|||||||
switch(offset) {
|
switch(offset) {
|
||||||
case 0:
|
case 0:
|
||||||
do {
|
do {
|
||||||
pixel_target_[column+0] = active_palette[line_buffer.bitmap[start] >> 6];
|
pixel_target_[column+0] = active_palette[line_buffer.bitmap[start] >> 6]; [[fallthrough]];
|
||||||
case 1: pixel_target_[column+1] = active_palette[(line_buffer.bitmap[start] >> 4) & 3];
|
case 1: pixel_target_[column+1] = active_palette[(line_buffer.bitmap[start] >> 4) & 3]; [[fallthrough]];
|
||||||
case 2: pixel_target_[column+2] = active_palette[(line_buffer.bitmap[start] >> 2) & 3];
|
case 2: pixel_target_[column+2] = active_palette[(line_buffer.bitmap[start] >> 2) & 3]; [[fallthrough]];
|
||||||
case 3: pixel_target_[column+3] = active_palette[line_buffer.bitmap[start] & 3];
|
case 3: pixel_target_[column+3] = active_palette[line_buffer.bitmap[start] & 3];
|
||||||
++start;
|
++start;
|
||||||
column += 4;
|
column += 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user