Content-Length: 6241 | pFad | https://doc.rust-lang.org/std/iter/../convert/../../std/intrinsics/fn.unchecked_funnel_shr.html

unchecked_funnel_shr in std::intrinsics - Rust

unchecked_funnel_shr

Function unchecked_funnel_shr 

Source
pub const unsafe fn unchecked_funnel_shr<T>(a: T, b: T, shift: u32) -> T
where T: FunnelShift,
🔬This is a nightly-only experimental API. (funnel_shifts #145686)
Expand description

Funnel Shift right.

Concatenates a and b (with a in the most significant half), creating an integer twice as wide. Then shift this integer right by shift (taken modulo the bit size of T), and extract the least significant half. If a and b are the same, this is equivalent to a rotate right operation.

It is undefined behavior if shift is greater than or equal to the bit size of T.

Safer versions of this intrinsic are available on the integer primitives via the funnel_shr method. For example, u32::funnel_shr









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/iter/../convert/../../std/intrinsics/fn.unchecked_funnel_shr.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy