Skip to main content

const_cycle_loop

Function const_cycle_loop 

Source
pub fn const_cycle_loop(cycles: u64) -> u64
Expand description

Run function with known latency. Assume both sub & and ops are single cycle on all architectures. Might not behave as expected with another code running on the same phisical core.

Returns final counter value. Useful for creating dep chains with known latency.