This is a hobby project for my own edification, and maybe maybe to eventually show Rust's suitability for this kind of work. While I appreciate that the semantics of returning usize::MAX aren't correct, I'm also not an expert on C standard library implementations. Just a hobbyist writing a little bit about something I'm trying out.
Potentially relevant is this section of the repo's README:
EDIT: After a suggestion in a sibling here, here's a version which neither explicitly aborts (musl doesn't do abort or unreachable), nor uses an explicit return of usize::MAX:
Potentially relevant is this section of the repo's README:
https://github.com/dikaiosune/rusl#goals-and-non-goals
EDIT: After a suggestion in a sibling here, here's a version which neither explicitly aborts (musl doesn't do abort or unreachable), nor uses an explicit return of usize::MAX:
https://is.gd/lck8c7
It doesn't autovectorize, but I suspect that with some work I could maybe convince LLVM to do so.