chore: Changing typedef declarations to using.

This commit is contained in:
2025-05-04 00:52:14 +02:00
parent 040c6b0e46
commit 26e2403fd7
3 changed files with 322 additions and 284 deletions

View File

@@ -4,92 +4,87 @@
// ============================================= //
// Turn os specific types into global types. //
// ============================================= //
// ============================================= //
namespace Phanes::Core::Types
{
// Specific types size
//
// 8-Bit integer
typedef int8_t int8;
// Specific types size
//
// 8-Bit integer
using int8 = int8_t;
// 16-Bit integer
typedef int16_t int16;
// 16-Bit integer
using int16 = int16_t;
// 32-Bit integer
typedef int32_t int32;
// 32-Bit integer
using int32 = int32_t;
// 64-Bit integer
typedef int64_t int64;
// 64-Bit integer
using int64 = int64_t;
// 8-Bit unsigned integer
typedef uint8_t uint8;
// 8-Bit unsigned integer
using uint8 = uint8_t;
// 16-Bit unsigned integer
typedef uint16_t uint16;
// 16-Bit unsigned integer
using uint16 = uint16_t;
// 32-Bit unsigned integer
typedef uint32_t uint32;
// 32-Bit unsigned integer
using uint32 = uint32_t;
// 64-Bit unsigned integer
typedef uint64_t uint64;
// 64-Bit unsigned integer
using uint64 = uint64_t;
// At least N bit types
//
// At least 8-Bit integer
using lint8 = int_least8_t;
// At least 16-Bit integer
using lint16 = int_least16_t;
// At least N bit types
//
// At least 8-Bit integer
typedef int_least8_t lint8;
// At least 32-Bit integer
using lint32 = int_least32_t;
// At least 16-Bit integer
typedef int_least16_t lint16;
// At least 64-Bit integer
using lint64 = int_least64_t;
// At least 32-Bit integer
typedef int_least32_t lint32;
// At least 8-Bit integer
using ulint8 = uint_least8_t;
// At least 64-Bit integer
typedef int_least64_t lint64;
// At least 16-Bit integer
using ulint16 = uint_least16_t;
// At least 8-Bit integer
typedef uint_least8_t ulint8;
// At least 32-Bit integer
using ulint32 = uint_least32_t;
// At least 16-Bit integer
typedef uint_least16_t ulint16;
// At least 64-Bit integer
using ulint64 = uint_least64_t;
// At least 32-Bit integer
typedef uint_least32_t ulint32;
// Fast N bit types
//
// Fast 8-bit integer
using fint8 = int_fast8_t;
// At least 64-Bit integer
typedef uint_least64_t ulint64;
// At least 16-Bit integer
using fint16 = int_fast16_t;
// At least 32-Bit integer
using fint32 = int_fast32_t;
// At least 64-Bit integer
using fint64 = int_fast64_t;
// Fast N bit types
//
// Fast 8-bit integer
typedef int_fast8_t fint8;
// At least 8-Bit integer
using ufint8 = uint_fast8_t;
// At least 16-Bit integer
typedef int_fast16_t fint16;
// At least 16-Bit integer
using ufint16 = uint_fast16_t;
// At least 32-Bit integer
typedef int_fast32_t fint32;
// At least 32-Bit integer
using ufint32 = uint_fast32_t;
// At least 64-Bit integer
typedef int_fast64_t fint64;
// At least 64-Bit integer
using ufint64 = uint_fast64_t;
// At least 8-Bit integer
typedef uint_fast8_t ufint8;
// At least 16-Bit integer
typedef uint_fast16_t ufint16;
// At least 32-Bit integer
typedef uint_fast32_t ufint32;
// At least 64-Bit integer
typedef uint_fast64_t ufint64;
}
} // namespace Phanes::Core::Types