mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Reduce input and output offsets to 0..8 to half run time
This commit is contained in:
parent
d053aa1707
commit
e08aaf6c7a
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue