tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
int_fast_t.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_CSTDINT_INT_FAST_T_HPP
5#define TETL_CSTDINT_INT_FAST_T_HPP
6
7#include <etl/_config/all.hpp>
8
9namespace etl {
10
11/// \brief Signed integer type with width of at least 8 bits.
12using int_fast8_t = TETL_BUILTIN_INT8;
13
14/// \brief Signed integer type with width of at least 16 bits.
15using int_fast16_t = TETL_BUILTIN_INT16;
16
17/// \brief Signed integer type with width of at least 32 bits.
18using int_fast32_t = TETL_BUILTIN_INT32;
19
20/// \brief Signed integer type with width of at least 64 bits.
21using int_fast64_t = TETL_BUILTIN_INT64;
22
23} // namespace etl
24
25static_assert(sizeof(etl::int_fast8_t) >= 1);
26static_assert(sizeof(etl::int_fast16_t) >= 2);
27static_assert(sizeof(etl::int_fast32_t) >= 4);
28static_assert(sizeof(etl::int_fast64_t) >= 8);
29
30#endif // TETL_CSTDINT_INT_FAST_T_HPP
Definition adjacent_find.hpp:9