MCPcopy Create free account
hub / github.com/RustCrypto/utils / custom_black_box

Function custom_black_box

zeroize/src/barrier.rs:93–95  ·  view source on GitHub ↗
(p: *const u8)

Source from the content-addressed store, hash-verified

91 /// `#[inline(never)]` and `read_volatile`.
92 #[inline(never)]
93 fn custom_black_box(p: *const u8) {
94 let _ = unsafe { core::ptr::read_volatile(p) };
95 }
96
97 core::hint::black_box(val);
98 if size_of_val(val) > 0 {

Callers 1

optimization_barrierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected