Module fate::intrin::likely [] [src]

Branch prediction intrinsics and utilities - currently wrapping LLVM's expect intrinsic.

Traits

Expect

Trait for types that can provide branch prediction information through LLVM's expect intrinsic.

LikelyExt

Trait for types on which both likely() and unlikely() can be called.

Functions

expect

Provides a hint that val is likely equal to expected, and returns val.

likely

Provides a hint that pred is likely to be true, and returns pred.

unlikely

Provides a hint that pred is unlikely to be true, and returns pred.