Mirror von
https://github.com/Chaoscaot/schemsearch
synchronisiert 2024-10-02 20:50:10 +02:00
Move to i32
Dieser Commit ist enthalten in:
Ursprung
3eba89b119
Commit
abb2084029
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren