-
utx::u8
-
utx::u16
-
utx::u32
-
utx::u64
-
utx::umax
constexpr utx::u8 a = 0;
constexpr utx::u16 b = 1;
constexpr utx::u32 c = 2;
constexpr utx::u64 d = 3;
constexpr utx::umax e = 4;
-
utx::u8_max
-
utx::u16_max
-
utx::u32_max
-
utx::u64_max
-
utx::umax_max
utx::print(
utx::u8_max,
utx::u16_max,
utx::u32_max,
utx::u64_max,
utx::umax_max
);
-
All Zero - 0 :
-
utx::u8_min
-
utx::u16_min
-
utx::u32_min
-
utx::u64_min
-
utx::umax_min
-
utx::i8
-
utx::i16
-
utx::i32
-
utx::i64
-
utx::imax
constexpr utx::i8 a = -2;
constexpr utx::i16 b = -1;
constexpr utx::i32 c = 0;
constexpr utx::i64 d = 1;
constexpr utx::imax e = 2;
-
utx::i8_max
-
utx::i16_max
-
utx::i32_max
-
utx::i64_max
-
utx::imax_max
utx::print(
utx::i8_max,
utx::i16_max,
utx::i32_max,
utx::i64_max,
utx::imax_max
);
-
utx::i8_min
-
utx::i16_min
-
utx::i32_min
-
utx::i64_min
-
utx::imax_min
utx::print(
utx::i8_min,
utx::i16_min,
utx::i32_min,
utx::i64_min,
utx::imax_min
);
-
utx::f32
-
utx::f64
-
utx::f128
-
utx::fmax
-
utx::f32_max
-
utx::f64_max
-
utx::f128_max
-
utx::fmax_max
-
utx::f32_min
-
utx::f64_min
-
utx::f128_min
-
utx::fmax_min
-
utx::f32_inf
-
utx::f64_inf
-
utx::f128_inf
-
utx::fmax_inf
![[Note]](images/note.png) |
Note |
-
The number of bits are not guaranteed, it depends on operating system
or toolchain environments.
-
utx::f32 must be guaranteed 32 bits by environment, otherwise using
utx::f32 will cause it to refuse compiling.
-
utx::f64 is not guaranteed 64 bits, but must be greater or equal to
utx::f32 bits.
-
utx::f128 is not guaranteed 128 bits, but must be greater or equal
to utx::f64 bits.
-
utx::fmax must be greater or equal to utx::f128 bits.
|
constexpr utx::f32 f1 = -2.5;
constexpr utx::f32 f2 = 2.5;
constexpr utx::f64 f3 = -3.5;
constexpr utx::f128 f4 = 3.5;
constexpr utx::fmax f5 = -4.5;
-
utx::uc8_bits, must be exactly 8
-
utx::c8_bits
constexpr utx::c8 a = 'B';
constexpr utx::uc8 b = 'H';
constexpr utx::c8 c = 127;
constexpr utx::uc8 d = 255;
static_assert(utx::uc8_bits == 8);