Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shambase
include
shambase
aliases_int.hpp
Go to the documentation of this file.
1
// -------------------------------------------------------//
2
//
3
// SHAMROCK code for hydrodynamics
4
// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5
// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6
// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7
//
8
// -------------------------------------------------------//
9
10
#pragma once
11
19
#include <cstddef>
20
#include <cstdint>
21
22
using
i64
= std::int64_t;
23
using
i32
= std::int32_t;
24
using
i16
= std::int16_t;
25
using
i8
= std::int8_t;
26
using
u64
= std::uint64_t;
27
using
u32
= std::uint32_t;
28
using
u16
= std::uint16_t;
29
using
u8
= std::uint8_t;
30
using
usize
= std::size_t;
31
32
using
byte
= char;
33
42
44
constexpr
u8
operator
""
_u8(
unsigned
long
long
n) {
return
u8
(n); }
46
constexpr
u16
operator
""
_u16(
unsigned
long
long
n) {
return
u16
(n); }
48
constexpr
u32
operator
""
_u32(
unsigned
long
long
n) {
return
u32
(n); }
50
constexpr
u64
operator
""
_u64(
unsigned
long
long
n) {
return
u64
{n}; }
52
constexpr
i8
operator
""
_i8(
unsigned
long
long
n) {
return
i8
(n); }
54
constexpr
i16
operator
""
_i16(
unsigned
long
long
n) {
return
i16
(n); }
56
constexpr
i32
operator
""
_i32(
unsigned
long
long
n) {
return
i32
(n); }
58
constexpr
i64
operator
""
_i64(
unsigned
long
long
n) {
return
i64
(n); }
i8
std::int8_t i8
8 bit integer
Definition
aliases_int.hpp:25
u8
std::uint8_t u8
8 bit unsigned integer
Definition
aliases_int.hpp:29
u32
std::uint32_t u32
32 bit unsigned integer
Definition
aliases_int.hpp:27
u64
std::uint64_t u64
64 bit unsigned integer
Definition
aliases_int.hpp:26
u16
std::uint16_t u16
16 bit unsigned integer
Definition
aliases_int.hpp:28
byte
char byte
byte type similar to std::byte
Definition
aliases_int.hpp:32
i16
std::int16_t i16
16 bit integer
Definition
aliases_int.hpp:24
usize
std::size_t usize
size_t alias
Definition
aliases_int.hpp:30
i64
std::int64_t i64
64 bit integer
Definition
aliases_int.hpp:22
i32
std::int32_t i32
32 bit integer
Definition
aliases_int.hpp:23
Generated on Wed May 13 2026 13:21:49 for Shamrock by
1.9.8