add: d02, optimizations might come later

will namely add a numberic based algorithm, maybe even the stack
.to_string() is too slow

also might not do it, grialion already optimized tf out of it
This commit is contained in:
2025-12-02 13:15:02 +01:00
parent 58f03d5fbf
commit 23c52cab0e
4 changed files with 191 additions and 2 deletions

View File

@@ -179,9 +179,9 @@ pub mod loader {
// SAFETY: This is actually safe as it just creates the fn ptr, no weird fn with weird
// drop.
untry!(unsafe { handle.symfn::<C<isize>>(c"challenge_isize") }.map(V::Isize));
untry!(unsafe { handle.symfn::<C<usize>>(c"challenge_isize") }.map(V::Usize));
untry!(unsafe { handle.symfn::<C<usize>>(c"challenge_usize") }.map(V::Usize));
untry!(unsafe { handle.symfn::<C<(usize, usize)>>(c"challenge_isize_duple") }.map(V::UsizeDuple));
untry!(unsafe { handle.symfn::<C<(isize, isize)>>(c"challenge_isize_duple") }.map(V::IsizeDuple));
untry!(unsafe { handle.symfn::<C<(isize, isize)>>(c"challenge_usize_duple") }.map(V::IsizeDuple));
None
}