Blaze 3.9
Types.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_TYPES_H_
36#define _BLAZE_UTIL_TYPES_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <cstddef>
44#include <cstdint>
45
46
47namespace blaze {
48
49//=================================================================================================
50//
51// TYPE DEFINITIONS
52//
53//=================================================================================================
54
55//*************************************************************************************************
60using std::size_t;
61//*************************************************************************************************
62
63
64//*************************************************************************************************
69using std::ptrdiff_t;
70//*************************************************************************************************
71
72
73//*************************************************************************************************
79using byte_t = unsigned char;
80//*************************************************************************************************
81
82
83//*************************************************************************************************
88using std::int8_t;
89//*************************************************************************************************
90
91
92//*************************************************************************************************
97using std::uint8_t;
98//*************************************************************************************************
99
100
101//*************************************************************************************************
106using std::int16_t;
107//*************************************************************************************************
108
109
110//*************************************************************************************************
115using std::uint16_t;
116//*************************************************************************************************
117
118
119//*************************************************************************************************
124using std::int32_t;
125//*************************************************************************************************
126
127
128//*************************************************************************************************
133using std::uint32_t;
134//*************************************************************************************************
135
136
137//*************************************************************************************************
142using std::int64_t;
143//*************************************************************************************************
144
145
146//*************************************************************************************************
151using std::uint64_t;
152//*************************************************************************************************
153
154
155//*************************************************************************************************
159using large_t = int64_t;
160//*************************************************************************************************
161
162
163//*************************************************************************************************
167using ularge_t = uint64_t;
168//*************************************************************************************************
169
170
171//*************************************************************************************************
176//*************************************************************************************************
177
178
179//*************************************************************************************************
183#if BLAZE_GNU_COMPILER && BLAZE_GNU_MAJOR_VERSION <= 7
184using fortran_charlen_t = int;
185#else
186using fortran_charlen_t = size_t;
187#endif
188//*************************************************************************************************
189
190
191//*************************************************************************************************
196{
197 float real;
198 float imag;
199};
200//*************************************************************************************************
201
202
203//*************************************************************************************************
208{
209 double real;
210 double imag;
211};
212//*************************************************************************************************
213
214} // namespace blaze
215
216#endif
ularge_t id_t
Unsigned integer data type for integral IDs.
Definition: Types.h:175
uint64_t ularge_t
The largest available unsigned integer data type.
Definition: Types.h:167
unsigned char byte_t
Byte data type of the Blaze library.
Definition: Types.h:79
int64_t large_t
The largest available signed integer data type.
Definition: Types.h:159
size_t fortran_charlen_t
Type of the hidden arguments of character type within a Fortran forward declaration.
Definition: Types.h:186
Type of double precision complex numbers within a Fortran forward declaration.
Definition: Types.h:208
double real
The real part of the complex number.
Definition: Types.h:209
double imag
The imaginary part of the complex number.
Definition: Types.h:210
Type of single precision complex numbers within a Fortran forward declaration.
Definition: Types.h:196
float imag
The imaginary part of the complex number.
Definition: Types.h:198
float real
The real part of the complex number.
Definition: Types.h:197