Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
integer_types.hpp
Go to the documentation of this file.
1// Copyright 2024, Toyota Motor Corporation
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_INTEGER_TYPES_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_INTEGER_TYPES_HPP_
7
8#include "arene/base/stdlib_choice/cstdint.hpp"
9
10namespace arene {
11namespace base {
12
13// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
14// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint16_t not reserved in this context"
15// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint16_t not reserved in this context"
16/// @brief An 8-bit unsigned integer type
18// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
19// parasoft-end-suppress CERT_CPP-DCL51-f-3
20// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
21
22// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
23// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint16_t not reserved in this context"
24// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint16_t not reserved in this context"
25/// @brief A 16-bit unsigned integer type
26// NOLINTNEXTLINE(google-runtime-int)
28// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
29// parasoft-end-suppress CERT_CPP-DCL51-f-3
30// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
31
32// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
33// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint32_t not reserved in this context"
34// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint32_t not reserved in this context"
35/// @brief A 32-bit unsigned integer type
37// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
38// parasoft-end-suppress CERT_CPP-DCL51-f-3
39// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
40
41// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
42// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint64_t not reserved in this context"
43// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint64_t not reserved in this context"
44/// @brief A 64-bit unsigned integer type
45// NOLINTNEXTLINE(google-runtime-int,readability-magic-numbers)
47// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
48// parasoft-end-suppress CERT_CPP-DCL51-f-3
49// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
50
51// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
52// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int8_t not reserved in this context"
53// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int8_t not reserved in this context"
54/// @brief An 8-bit signed integer type
56// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
57// parasoft-end-suppress CERT_CPP-DCL51-f-3
58// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
59
60// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
61// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int16_t not reserved in this context"
62// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int16_t not reserved in this context"
63/// @brief A 16-bit signed integer type
64// NOLINTNEXTLINE(google-runtime-int)
66// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
67// parasoft-end-suppress CERT_CPP-DCL51-f-3
68// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
69
70// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
71// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int32_t not reserved in this context"
72// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int32_t not reserved in this context"
73/// @brief A 32-bit signed integer type
75// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
76// parasoft-end-suppress CERT_CPP-DCL51-f-3
77// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
78
79// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
80// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int64_t not reserved in this context"
81// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int64_t not reserved in this context"
82/// @brief A 64-bit signed integer type
83// NOLINTNEXTLINE(google-runtime-int,readability-magic-numbers)
85// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
86// parasoft-end-suppress CERT_CPP-DCL51-f-3
87// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
88
89} // namespace base
90} // namespace arene
91
92#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_INTEGER_TYPES_HPP_
Definition accumulate.hpp:37
::std::uint32_t uint32_t
A 32-bit unsigned integer type.
Definition integer_types.hpp:36
::std::int16_t int16_t
A 16-bit signed integer type.
Definition integer_types.hpp:65
::std::uint64_t uint64_t
A 64-bit unsigned integer type.
Definition integer_types.hpp:46
::std::uint16_t uint16_t
A 16-bit unsigned integer type.
Definition integer_types.hpp:27
::std::int8_t int8_t
An 8-bit signed integer type.
Definition integer_types.hpp:55
::std::int32_t int32_t
A 32-bit signed integer type.
Definition integer_types.hpp:74
::std::uint8_t uint8_t
An 8-bit unsigned integer type.
Definition integer_types.hpp:17
::std::int64_t int64_t
A 64-bit signed integer type.
Definition integer_types.hpp:84
Definition accumulate.hpp:36
::int32_t int32_t
A 32-bit signed integer type.
Definition cstdint.hpp:66
::int16_t int16_t
A 16-bit signed integer type.
Definition cstdint.hpp:61
::uint8_t uint8_t
An 8-bit unsigned integer type.
Definition cstdint.hpp:30
::uint16_t uint16_t
A 16-bit unsigned integer type.
Definition cstdint.hpp:36
::uint32_t uint32_t
A 32-bit unsigned integer type.
Definition cstdint.hpp:41
::uint64_t uint64_t
A 64-bit unsigned integer type.
Definition cstdint.hpp:47
::int8_t int8_t
An 8-bit signed integer type.
Definition cstdint.hpp:55
::int64_t int64_t
A 64-bit signed integer type.
Definition cstdint.hpp:71