mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-11-27 21:47:05 +01:00
Move to i32
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
int32_t isMatching(
|
int32_t isMatching(
|
||||||
const int32_t *schem_data,
|
const int32_t *schem_data,
|
||||||
|
|||||||
@@ -159,8 +159,6 @@ pub fn search(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg!(result.clone());
|
|
||||||
|
|
||||||
result.into_iter().enumerate().filter(|(_, matching_count)| *matching_count >= i_pattern_blocks - skip_amount).for_each(|(i, matching_count)| {
|
result.into_iter().enumerate().filter(|(_, matching_count)| *matching_count >= i_pattern_blocks - skip_amount).for_each(|(i, matching_count)| {
|
||||||
let percent = matching_count as f32 / pattern_blocks;
|
let percent = matching_count as f32 / pattern_blocks;
|
||||||
let x = i % schem_width;
|
let x = i % schem_width;
|
||||||
|
|||||||
Reference in New Issue
Block a user