/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright 2011-2020 Danny Robson */ #pragma once #include "../std.hpp" #include namespace cruft::types::sized { template struct bits; template <> struct bits< 8u> { using uint = u08; using sint = i08; }; template <> struct bits<16u> { using uint = u16; using sint = i16; }; template <> struct bits<32u> { using uint = u32; using sint = i32; using real = f32; }; template <> struct bits<64u> { using uint = u64; using sint = i64; using real = f64; }; template struct bytes : public bits { }; template struct sized_type : public bits { }; }