Lines Matching refs:RES
500 /// Right-shifts `self` by `SHIFT` and returns the result as a `Bounded<_, RES>`, where `RES >=
513 pub fn shr<const SHIFT: u32, const RES: u32>(self) -> Bounded<T, RES> {
515 const_assert!(RES + SHIFT >= N);
518 // represent the shifted value by as much, and just asserted that `RES >= N - SHIFT`.
523 /// `Bounded<_, RES>`, where `RES >= N - SHIFT`.
544 pub fn shr_exact<const SHIFT: u32, const RES: u32>(self) -> Option<Bounded<T, RES>> {
545 let shifted = self.shr::<SHIFT, RES>();
553 /// Left-shifts `self` by `SHIFT` and returns the result as a `Bounded<_, RES>`, where `RES >=
566 pub fn shl<const SHIFT: u32, const RES: u32>(self) -> Bounded<T, RES> {
567 const_assert!(RES >= N + SHIFT);
570 // represent the shifted value by as much, and just asserted that `RES >= N + SHIFT`.