compiler_builtins 0.1.160

Compiler intrinsics used by the Rust compiler.
Documentation
#![allow(unused_imports)]

use core::intrinsics;

intrinsics! {
    #[unsafe(naked)]
    #[cfg(all(target_os = "uefi", not(feature = "no-asm")))]
    pub unsafe extern "C" fn __chkstk() {
        core::arch::naked_asm!(
            ".p2align 2",
            "lsl    x16, x15, #4",
            "mov    x17, sp",
            "1:",
            "sub    x17, x17, 4096",
            "subs   x16, x16, 4096",
            "ldr    xzr, [x17]",
            "b.gt   1b",
            "ret",
        );
    }
}