mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Reduce input and output offsets to 0..8 to half run time
This commit is contained in:
parent
d053aa1707
commit
e08aaf6c7a
|
@ -188,8 +188,8 @@ mod test {
|
||||||
let mut output = vec![0u32; 100];
|
let mut output = vec![0u32; 100];
|
||||||
|
|
||||||
for size in 0..80 {
|
for size in 0..80 {
|
||||||
for offset_input in 0..10 {
|
for offset_input in 0..8 {
|
||||||
for offset_output in 0..10 {
|
for offset_output in 0..8 {
|
||||||
// initialise the buffers
|
// initialise the buffers
|
||||||
for (i, value) in input.iter_mut().enumerate() {
|
for (i, value) in input.iter_mut().enumerate() {
|
||||||
*value = i as u32;
|
*value = i as u32;
|
||||||
|
@ -224,8 +224,8 @@ mod test {
|
||||||
let mut output = vec![0u32; 100];
|
let mut output = vec![0u32; 100];
|
||||||
|
|
||||||
for size in 0..40 {
|
for size in 0..40 {
|
||||||
for offset_input in 0..10 {
|
for offset_input in 0..8 {
|
||||||
for offset_output in 0..10 {
|
for offset_output in 0..8 {
|
||||||
// initialise the buffers
|
// initialise the buffers
|
||||||
for (i, value) in input.iter_mut().enumerate() {
|
for (i, value) in input.iter_mut().enumerate() {
|
||||||
*value = i as u32;
|
*value = i as u32;
|
||||||
|
|
Loading…
Reference in a new issue