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-add.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 
22 void EltwiseCmpAdd(uint64_t* result, const uint64_t* operand1, uint64_t n,
23  CMPINT cmp, uint64_t bound, uint64_t diff);
24 
25 } // namespace hexl
26 } // namespace intel
CMPINT
Represents binary operations between two boolean values.
Definition: util.hpp:16
Definition: eltwise-add-mod.hpp:8
void EltwiseCmpAdd(uint64_t *result, const uint64_t *operand1, uint64_t n, CMPINT cmp, uint64_t bound, uint64_t diff)
Computes element-wise conditional addition.