Crate stable_intrinsics

Crate stable_intrinsics 

Source
Expand description

§Stable intrinsics

This crate wraps irreplacable instrisic functions on nightly, and re-implements it otherwise.

Traits§

DisjointBitOr
Same as core::intrinsics::fallback::DisjointBitOr except it is not const due to stable and beta limitations.

Functions§

abort
Same as std::intrinsics::abort on nightly. On stable and beta, the exact behavior depends on whether or not that std is avalible.
breakpoint
Same as std::intrinsics::breakpoint on nightly. On stable and beta, the implementation depends on the target architecture.
cold_path
Same as core::intrinsics::cold_path on nightly. On stable and beta, it is a no-op.
disjoint_bitor
Same as core::intrinsics::disjoint_bitor on nightly except the const-ness. On stable and beta, it is implemented with core::hint::assert_unchecked.
likely
Same as core::intrinsics::likely on nightly. On stable and beta, it is an identity function.
nontemporal_store
Same as core::intrinsics::nontemporal_store on nightly. On stable and beta, it is simply a pointer store.
prefetch_read_data
Same as core::intrinsics::prefetch_read_data on nightly. On stable and beta, it is a no-op.
prefetch_read_instruction
Same as core::intrinsics::prefetch_read_instruction on nightly. On stable and beta, it is a no-op.
prefetch_write_data
Same as core::intrinsics::prefetch_write_data on nightly. On stable and beta, it is a no-op.
prefetch_write_instruction
Same as core::intrinsics::prefetch_write_instruction on nightly. On stable and beta, it is a no-op.
raw_eq
Same as core::intrinsics::raw_eq on nightly. On stable and beta, a and b are converted into [u8] before comparason.
select_unpredictable
Same as core::intrinsics::select_unpredictable on nightly. On stable and beta, use an if-else to determine the output.
transmute_unchecked
Same as core::intrinsics::transmute_unchecked.
unlikely
Same as core::intrinsics::unlikely on nightly. On stable and beta, it is an identity function.