Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code shared from the Rust Playground
fn takes_a_val(a: [u32; 1024]) -> bool {
#[inline(never)]
fn noinline(a: [u32; 1024]) -> bool {
a[0] == 0 || a[1023] == 0
}
noinline(a)
}
fn main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment