Intel HEXL
Intel Homomorphic Encryption Acceleration Library, accelerating the modular arithmetic operations used in homomorphic encryption.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eltwise-cmp-sub-mod.hpp
Go to the documentation of this file.
1 // Copyright (C) 2020-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include <stdint.h>
7 
8 #include "hexl/util/util.hpp"
9 
10 namespace intel {
11 namespace hexl {
12 
23 void EltwiseCmpSubMod(uint64_t* result, const uint64_t* operand1, uint64_t n,
24  uint64_t modulus, CMPINT cmp, uint64_t bound,
25  uint64_t diff);
26 
27 } // namespace hexl
28 } // namespace intel
CMPINT
Represents binary operations between two boolean values.
Definition: util.hpp:16
Definition: eltwise-add-mod.hpp:8
void EltwiseCmpSubMod(uint64_t *result, const uint64_t *operand1, uint64_t n, uint64_t modulus, CMPINT cmp, uint64_t bound, uint64_t diff)
Computes element-wise conditional modular subtraction.