imate
C++/CUDA Reference
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
3 * SPDX-License-Identifier: BSD-3-Clause
4 * SPDX-FileType: SOURCE
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the license found in the LICENSE.txt file in the root
8 * directory of this source tree.
9 */
10
11
12#ifndef _DEFINITIONS_TYPES_H_
13#define _DEFINITIONS_TYPES_H_
14
15// ========
16// Includes
17// ========
18
19#include "./definitions.h"
20
21// =====
22// Types
23// =====
24
49
50#if (LONG_INT == 1)
51 #if (UNSIGNED_LONG_INT == 1)
52 typedef unsigned long int LongIndexType;
53 #else
54 typedef long int LongIndexType;
55 #endif
56#else
57 #if (UNSIGNED_LONG_INT == 1)
58 typedef unsigned int LongIndexType;
59 #else
60 typedef int LongIndexType;
61 #endif
62#endif
63
64// Used for indices of short row of matrices
65typedef int IndexType;
66
67// Used for both flags and integers, including negative integers
68typedef int FlagType;
69
70#endif // _DEFINITIONS_TYPES_H_
int LongIndexType
Definition types.h:60
int FlagType
Definition types.h:68
int IndexType
Definition types.h:65