use super::Byte;
#[cfg(feature = "u128")]
use super::RONNABYTE;
#[rustfmt::skip]
impl Byte {
pub const BYTE: Byte = Byte(1);
pub const KILOBYTE: Byte = Byte(1_000);
pub const MEGABYTE: Byte = Byte(1_000_000);
pub const GIGABYTE: Byte = Byte(1_000_000_000);
pub const TERABYTE: Byte = Byte(1_000_000_000_000);
pub const PETABYTE: Byte = Byte(1_000_000_000_000_000);
pub const EXABYTE: Byte = Byte(1_000_000_000_000_000_000);
#[cfg(feature = "u128")]
pub const ZETTABYTE: Byte = Byte(1_000_000_000_000_000_000_000);
#[cfg(feature = "u128")]
pub const YOTTABYTE: Byte = Byte(1_000_000_000_000_000_000_000_000);
pub const KIBIBYTE: Byte = Byte(1 << 10);
pub const MEBIBYTE: Byte = Byte(1 << 20);
pub const GIBIBYTE: Byte = Byte(1 << 30);
pub const TEBIBYTE: Byte = Byte(1 << 40);
pub const PEBIBYTE: Byte = Byte(1 << 50);
pub const EXBIBYTE: Byte = Byte(1 << 60);
#[cfg(feature = "u128")]
pub const ZEBIBYTE: Byte = Byte(1 << 70);
#[cfg(feature = "u128")]
pub const YOBIBYTE: Byte = Byte(1 << 80);
pub const KILOBIT: Byte = Byte::KILOBYTE.div_8();
pub const MEGABIT: Byte = Byte::MEGABYTE.div_8();
pub const GIGABIT: Byte = Byte::GIGABYTE.div_8();
pub const TERABIT: Byte = Byte::TERABYTE.div_8();
pub const PETABIT: Byte = Byte::PETABYTE.div_8();
pub const EXABIT: Byte = Byte::EXABYTE.div_8();
#[cfg(feature = "u128")]
pub const ZETTABIT: Byte = Byte::ZETTABYTE.div_8();
#[cfg(feature = "u128")]
pub const YOTTABIT: Byte = Byte::YOTTABYTE.div_8();
pub const KIBIBIT: Byte = Byte::KIBIBYTE.div_8();
pub const MEBIBIT: Byte = Byte::MEBIBYTE.div_8();
pub const GIBIBIT: Byte = Byte::GIBIBYTE.div_8();
pub const TEBIBIT: Byte = Byte::TEBIBYTE.div_8();
pub const PEBIBIT: Byte = Byte::PEBIBYTE.div_8();
pub const EXBIBIT: Byte = Byte::EXBIBYTE.div_8();
#[cfg(feature = "u128")]
pub const ZEBIBIT: Byte = Byte::ZEBIBYTE.div_8();
#[cfg(feature = "u128")]
pub const YOBIBIT: Byte = Byte::YOBIBYTE.div_8();
pub const MIN: Byte = Byte(0);
pub const MAX: Byte = {
#[cfg(feature = "u128")]
{
Byte(RONNABYTE - 1)
}
#[cfg(not(feature = "u128"))]
{
Byte(u64::MAX)
}
};
}