proxsuite 0.7.2
The Advanced Proximal Optimization Toolbox
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
typedefs.hpp
Go to the documentation of this file.
1#ifndef VEG_TYPEDEFS_HPP_2UKLEQTSS
2#define VEG_TYPEDEFS_HPP_2UKLEQTSS
3
4#include <cstdint>
5#include <cstddef>
6
7namespace proxsuite {
8namespace linalg {
9namespace veg {
10namespace _detail {
11namespace _meta {
12template<typename T>
14template<>
15struct make_signed<unsigned char>
16{
17 using Type = signed char;
18};
19template<>
20struct make_signed<unsigned short>
21{
22 using Type = signed short;
23};
24template<>
25struct make_signed<unsigned int>
26{
27 using Type = signed int;
28};
29template<>
30struct make_signed<unsigned long>
31{
32 using Type = signed long;
33};
34template<>
35struct make_signed<unsigned long long>
36{
37 using Type = signed long long;
38};
39} // namespace _meta
40} // namespace _detail
41
42using usize = decltype(sizeof(0));
44
45using i64 = std::int64_t;
46using u64 = std::uint64_t;
47using i32 = std::int32_t;
48using u32 = std::uint32_t;
49using i16 = std::int16_t;
50using u16 = std::uint16_t;
51using u8 = std::uint8_t;
52using i8 = std::int8_t;
53
54} // namespace veg
55} // namespace linalg
56} // namespace proxsuite
57
58#endif /* end of include guard VEG_TYPEDEFS_HPP_2UKLEQTSS */
decltype(sizeof(0)) usize
Definition macros.hpp:702
std::uint16_t u16
Definition typedefs.hpp:50
std::uint64_t u64
Definition typedefs.hpp:46
std::uint32_t u32
Definition typedefs.hpp:48
_detail::_meta::make_signed< usize >::Type isize
Definition typedefs.hpp:43