Open jonas-schievink opened 4 years ago
Good point, the macros should probably create unsafe functions, since all the intrinsics are unsafe. Do you agree with that as the solution?
Most methods it creates are already unsafe
, just not the runtime_select
one. Making that unsafe as well would avoid this issue, so that seems fine.
I think there's a deeper issue with the fn unsafe_deref
being sort of magically made into an unsafe fn
though. I see this is needed to use pretty much any part of this library since so much is unsafe
due to the use of the SIMD intrinsics, so I'm not sure how to solve that.
@jonas-schievink : can you check this PR/branch and check if that does what you requested+
This program has undefined behavior but does not use
unsafe
: