• Home
  • Raw
  • Download

Lines Matching refs:reverse_bits

269     fn reverse_bits(self) -> Self {  in reverse_bits()  method
466 fn reverse_bits(self) -> Self {
467 <$T>::reverse_bits(self)
519 pub fn reverse_bits() { in reverse_bits() function
523 PrimInt::reverse_bits(0x0123_4567_89ab_cdefu64), in reverse_bits()
527 assert_eq!(PrimInt::reverse_bits(0i8), 0); in reverse_bits()
528 assert_eq!(PrimInt::reverse_bits(-1i8), -1); in reverse_bits()
529 assert_eq!(PrimInt::reverse_bits(1i8), i8::MIN); in reverse_bits()
530 assert_eq!(PrimInt::reverse_bits(i8::MIN), 1); in reverse_bits()
531 assert_eq!(PrimInt::reverse_bits(-2i8), i8::MAX); in reverse_bits()
532 assert_eq!(PrimInt::reverse_bits(i8::MAX), -2); in reverse_bits()
534 assert_eq!(PrimInt::reverse_bits(0i16), 0); in reverse_bits()
535 assert_eq!(PrimInt::reverse_bits(-1i16), -1); in reverse_bits()
536 assert_eq!(PrimInt::reverse_bits(1i16), i16::MIN); in reverse_bits()
537 assert_eq!(PrimInt::reverse_bits(i16::MIN), 1); in reverse_bits()
538 assert_eq!(PrimInt::reverse_bits(-2i16), i16::MAX); in reverse_bits()
539 assert_eq!(PrimInt::reverse_bits(i16::MAX), -2); in reverse_bits()
541 assert_eq!(PrimInt::reverse_bits(0i32), 0); in reverse_bits()
542 assert_eq!(PrimInt::reverse_bits(-1i32), -1); in reverse_bits()
543 assert_eq!(PrimInt::reverse_bits(1i32), i32::MIN); in reverse_bits()
544 assert_eq!(PrimInt::reverse_bits(i32::MIN), 1); in reverse_bits()
545 assert_eq!(PrimInt::reverse_bits(-2i32), i32::MAX); in reverse_bits()
546 assert_eq!(PrimInt::reverse_bits(i32::MAX), -2); in reverse_bits()
548 assert_eq!(PrimInt::reverse_bits(0i64), 0); in reverse_bits()
549 assert_eq!(PrimInt::reverse_bits(-1i64), -1); in reverse_bits()
550 assert_eq!(PrimInt::reverse_bits(1i64), i64::MIN); in reverse_bits()
551 assert_eq!(PrimInt::reverse_bits(i64::MIN), 1); in reverse_bits()
552 assert_eq!(PrimInt::reverse_bits(-2i64), i64::MAX); in reverse_bits()
553 assert_eq!(PrimInt::reverse_bits(i64::MAX), -2); in reverse_bits()
561 assert_eq!(PrimInt::reverse_bits(0i128), 0); in reverse_bits_i128()
562 assert_eq!(PrimInt::reverse_bits(-1i128), -1); in reverse_bits_i128()
563 assert_eq!(PrimInt::reverse_bits(1i128), i128::MIN); in reverse_bits_i128()
564 assert_eq!(PrimInt::reverse_bits(i128::MIN), 1); in reverse_bits_i128()
565 assert_eq!(PrimInt::reverse_bits(-2i128), i128::MAX); in reverse_bits_i128()
566 assert_eq!(PrimInt::reverse_bits(i128::MAX), -2); in reverse_bits_i128()