libfhe
fhe_config.h
Go to the documentation of this file.
1// libfhe
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <http://www.gnu.org/licenses/>.
15//
16//===----------------------------------------------------------------------===//
22//===----------------------------------------------------------------------===//
23
24#ifndef FHE_CONFIG_H
25#define FHE_CONFIG_H
26
27#include <stdint.h>
28
29#ifdef _OPENMP
30#include <omp.h>
31#ifdef _MSC_VER
32#define OMP_FOR __pragma(omp parallel for)
33#else
34#define OMP_FOR _Pragma("omp parallel for")
35#endif
36#else
37#define OMP_FOR
38#endif
39
40
44typedef int64_t int_t;
45
49typedef uint64_t uint_t;
50
54typedef __int128_t int_dt;
55
59typedef __uint128_t uint_dt;
60
64typedef enum DISTRIBUTION {
65 UNIFORM = 0,
66 TERNARY,
67 ERR,
69
70#endif /* FHE_CONFIG_H */
__int128_t int_dt
Default double integer width is 128 bits.
Definition: fhe_config.h:54
uint64_t uint_t
Default unsigned integer width is 64 bits.
Definition: fhe_config.h:49
__uint128_t uint_dt
Default double unsigned integer width is 128 bits.
Definition: fhe_config.h:59
int64_t int_t
Default integer width is 64 bits.
Definition: fhe_config.h:44
DISTRIBUTION
Enum determines sampling distribution.
Definition: fhe_config.h:64