1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/* rt.rs
 */

use core::intrinsics::{ctlz32, cttz32};
use core::mem::{transmute, size_of};

mod detail {
    extern {
        #[link_name = "llvm.debugtrap"]
        pub fn breakpoint();
    }
}

#[no_mangle]
pub fn breakpoint() {
    unsafe { detail::breakpoint() }
}