draconisplusplus/include/util/numtypes.h

25 lines
435 B
C
Raw Normal View History

2024-06-07 04:23:11 -04:00
#pragma once
2024-06-09 18:55:00 -04:00
#include <cstddef>
2024-06-07 04:23:11 -04:00
#include <cstdint>
// Unsigned integers
using u8 = std::uint8_t;
using u16 = std::uint16_t;
using u32 = std::uint32_t;
using u64 = std::uint64_t;
// Signed integers
using i8 = std::int8_t;
using i16 = std::int16_t;
using i32 = std::int32_t;
using i64 = std::int64_t;
// Floating-points
using f32 = float;
using f64 = double;
// Size types
using usize = std::size_t;
using isize = std::ptrdiff_t;