Skip to main content

likely

Function likely 

Source
pub const fn likely(b: bool) -> bool
Expand description

Branch predictor hint, which marks given condition as likely to be

ยงExample

use frozen_core::hints::likely;
assert!(likely(true));
assert!(!likely(false));