mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-29 10:04:20 +01:00
ab507033db
Avoids dumping types into global scope.
32 lines
717 B
C++
32 lines
717 B
C++
/* This file is part of the sirit project.
|
|
* Copyright (c) 2019 sirit
|
|
* This software may be used and distributed according to the terms of the
|
|
* 3-Clause BSD License
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace Sirit {
|
|
|
|
using u8 = std::uint8_t;
|
|
using u16 = std::uint16_t;
|
|
using u32 = std::uint32_t;
|
|
using u64 = std::uint64_t;
|
|
using uptr = std::uintptr_t;
|
|
|
|
using s8 = std::int8_t;
|
|
using s16 = std::int16_t;
|
|
using s32 = std::int32_t;
|
|
using s64 = std::int64_t;
|
|
using sptr = std::intptr_t;
|
|
|
|
using f32 = float;
|
|
using f64 = double;
|
|
static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide");
|
|
static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide");
|
|
|
|
} // namespace Sirit
|