Remove the broken Rust functions and instead provide C macros in a `include/bits` header. The C macros were taken from musl.