crypto_bigint/limb/
bit_or.rs1use super::Limb;
4use core::ops::{BitOr, BitOrAssign};
5
6impl Limb {
7 #[inline(always)]
9 pub const fn bitor(self, rhs: Self) -> Self {
10 Limb(self.0 | rhs.0)
11 }
12}
13
14impl BitOr for Limb {
15 type Output = Limb;
16
17 fn bitor(self, rhs: Self) -> Self::Output {
18 self.bitor(rhs)
19 }
20}
21
22impl BitOrAssign for Limb {
23 fn bitor_assign(&mut self, other: Self) {
24 *self = self.bitor(other);
25 }
26}
27
28impl BitOrAssign<&Limb> for Limb {
29 fn bitor_assign(&mut self, other: &Self) {
30 *self = self.bitor(*other);
31 }
32}