-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h
49 lines (40 loc) · 1.25 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#define SEAL_VERSION "3.5.8"
#define SEAL_VERSION_MAJOR 3
#define SEAL_VERSION_MINOR 5
#define SEAL_VERSION_PATCH 8
// Are we in debug mode?
/* #undef SEAL_DEBUG */
// C++17 features
#define SEAL_USE_STD_BYTE
#define SEAL_USE_SHARED_MUTEX
#define SEAL_USE_IF_CONSTEXPR
#define SEAL_USE_MAYBE_UNUSED
#define SEAL_USE_NODISCARD
// Security
#define SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
// Intrinsics
#define SEAL_USE_INTRIN
/* #undef SEAL_USE___BUILTIN_CLZLL */
/* #undef SEAL_USE___INT128 */
#define SEAL_USE__ADDCARRY_U64
#define SEAL_USE__SUBBORROW_U64
// Zero memory functions
/* #undef SEAL_USE_EXPLICIT_BZERO */
/* #undef SEAL_USE_EXPLICIT_MEMSET */
/* #undef SEAL_USE_MEMSET_S */
// Third-party dependencies
#define SEAL_USE_MSGSL
#define SEAL_USE_ZLIB
// Handmade for Seal4Pyfhel by running Cmake . in Wondows10 and Ubuntu18 and comparing.
#if SEAL_COMPILER == SEAL_COMPILER_MSVC
#define SEAL_USE_STD_FOR_EACH_N
#define SEAL_USE__UMUL128
#define SEAL_USE__BITSCANREVERSE64
#elif (SEAL_COMPILER == SEAL_COMPILER_GCC) || (SEAL_COMPILER == SEAL_COMPILER_CLANG)
#define SEAL_USE___BUILTIN_CLZLL
#define SEAL_USE___INT128
#define SEAL_USE_EXPLICIT_BZERO
#endif