Skip to content
Snippets Groups Projects

Some Cava optimization

Merged rarbore2 requested to merge cava_opt into main
2 files
+ 71
71
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -29,7 +29,7 @@ fn scale<row : usize, col : usize>(input : u8[CHAN, row, col]) -> f32[CHAN, row,
for chan = 0 to CHAN {
for r = 0 to row {
for c = 0 to col {
res[chan, r, c] = input[chan, r, c] as f32 * (1.0 / 255.0);
res[chan, r, c] = input[chan, r, c] as f32 / 255.0;
}
}
}
Loading