mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
lang: remove endwhile keyword
This commit is contained in:
1 parent
6c8a43390b
commit
aae5997e12
56 files changed
+578
-590
No files matched your search
@@ -59,7 +59,7 @@ pri func decoder.apply_transform_predictor!(pix: slice base.u8, tile_data: rosli
|
||||
curr_row[6] ~mod+= curr_row[2]
|
||||
curr_row[7] ~mod+= curr_row[3]
|
||||
curr_row = curr_row[4 ..]
|
||||
} endwhile
|
||||
}
|
||||
|
||||
tile_size_log2 = this.transform_tile_size_log2[0] as base.u32
|
||||
tiles_per_row = (this.width + (((1 as base.u32) << tile_size_log2) - 1)) >> tile_size_log2
|
||||
@@ -232,10 +232,10 @@ pri func decoder.apply_transform_predictor!(pix: slice base.u8, tile_data: rosli
|
||||
curr_row = curr_row[4 ..]
|
||||
prev_row = prev_row[4 ..]
|
||||
x += 1
|
||||
} endwhile
|
||||
}
|
||||
|
||||
y += 1
|
||||
} endwhile
|
||||
}
|
||||
}
|
||||
|
||||
pri func decoder.absolute_difference(a: base.u32[..= 0xFF], b: base.u32[..= 0xFF]) base.u32[..= 0xFF] {
|
||||
@@ -340,10 +340,10 @@ pri func decoder.apply_transform_cross_color!(pix: slice base.u8, tile_data: ros
|
||||
}
|
||||
|
||||
x += 1
|
||||
} endwhile
|
||||
}
|
||||
|
||||
y += 1
|
||||
} endwhile
|
||||
}
|
||||
}
|
||||
|
||||
pri func decoder.apply_transform_subtract_green!(pix: slice base.u8) {
|
||||
@@ -421,10 +421,10 @@ pri func decoder.apply_transform_color_indexing!(pix: slice base.u8) {
|
||||
dst[3] = p3
|
||||
dst = dst[4 ..]
|
||||
x ~mod+= 1
|
||||
} endwhile
|
||||
}
|
||||
|
||||
y += 1
|
||||
} endwhile
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: we shouldn't need a lookup table for converting i8 to i32.
|
||||
|
||||
Reference in new issue
Block a user