Lines Matching refs:bits
74 pub fn bits(&self) -> i64 { in bits() method
518 bits = $bits:literal,
526 #[doc = concat!("binary", stringify!($bits))]
544 bits: $bits_ty
548 const BITS: u8 = $bits;
560 pub const fn with_bits(bits: $bits_ty) -> Self {
561 Self { bits }
565 pub fn bits(self) -> $bits_ty {
566 self.bits
580 $float_ty::from_bits(self.bits())
586 Self::with_bits(self.bits() & !Self::SIGN_MASK)
591 Self::with_bits((self.bits() & !Self::SIGN_MASK) | (sign.bits() & Self::SIGN_MASK))
653 …Self::with_bits((1 << (Self::BITS - 1)) | Self::pow2(n - 1).bits() | (1 << (i32::from(Self::SIGNIF…
660 self.abs().bits() > Self::EXPONENT_MASK
670 self.bits() & Self::SIGN_MASK == Self::SIGN_MASK
675 self.abs().bits() == 0
734 self.bits().partial_cmp(&rhs.bits())
737 rhs.bits().partial_cmp(&self.bits())
745 … format_float(u128::from(self.bits()), Self::EXPONENT_BITS, Self::SIGNIFICAND_BITS, f)
762 self.bits().to_le_bytes().to_vec()
770 Self::with_bits(self.bits() ^ Self::SIGN_MASK)
820 Self::with_bits(self.bits() & rhs.bits())
828 Self::with_bits(self.bits() | rhs.bits())
836 Self::with_bits(self.bits() ^ rhs.bits())
844 Self::with_bits(!self.bits())
852 bits = 16,
861 bits = 32,
870 bits = 64,
879 bits = 128,
896 fn format_float(bits: u128, w: u8, t: u8, f: &mut Formatter) -> fmt::Result { in format_float()
902 let t_bits = bits & ((1u128 << t) - 1); // Trailing significand. in format_float()
903 let e_bits = (bits >> t) & max_e_bits; // Biased exponent. in format_float()
904 let sign_bit = (bits >> (w + t)) & 1; in format_float()