Sen API
Sen Libraries
Loading...
Searching...
No Matches
numbers.h
Go to the documentation of this file.
1// === numbers.h =======================================================================================================
2// Sen Infrastructure
3// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4// See the LICENSE.txt file for more information.
5// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6// =====================================================================================================================
7
8#ifndef SEN_CORE_BASE_NUMBERS_H
9#define SEN_CORE_BASE_NUMBERS_H
10
11#include <cstdint>
12
15
16using float32_t = float; // NOLINT
17using float64_t = double; // NOLINT
18using uchar_t = unsigned char; // NOLINT
19
20using i8 = int8_t; // NOLINT
21using u8 = uint8_t; // NOLINT
22using i16 = int16_t; // NOLINT
23using u16 = uint16_t; // NOLINT
24using i32 = int32_t; // NOLINT
25using u32 = uint32_t; // NOLINT
26using i64 = int64_t; // NOLINT
27using u64 = uint64_t; // NOLINT
28using f32 = float32_t; // NOLINT
29using f64 = float64_t; // NOLINT
30
31static_assert(sizeof(float32_t) == sizeof(int32_t));
32static_assert(sizeof(float64_t) == sizeof(int64_t));
33
35
36#endif // SEN_CORE_BASE_NUMBERS_H
int8_t i8
Definition numbers.h:20
uint64_t u64
Definition numbers.h:27
float float32_t
Definition numbers.h:16
unsigned char uchar_t
Definition numbers.h:18
float32_t f32
Definition numbers.h:28
double float64_t
Definition numbers.h:17
uint16_t u16
Definition numbers.h:23
uint32_t u32
Definition numbers.h:25
int64_t i64
Definition numbers.h:26
int16_t i16
Definition numbers.h:22
uint8_t u8
Definition numbers.h:21
float64_t f64
Definition numbers.h:29
int32_t i32
Definition numbers.h:24