Intel HEXL
Intel Homomorphic Encryption Acceleration Library, accelerating the modular arithmetic operations used in homomorphic encryption.
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, CMPINT cmp,
24  uint64_t bound, uint64_t diff, uint64_t modulus,
25  uint64_t n);
26 
27 } // namespace hexl
28 } // namespace intel
intel::hexl::CMPINT
CMPINT
Represents binary operations between two boolean values.
Definition: util.hpp:14
intel
Definition: eltwise-add-mod.hpp:8
intel::hexl::EltwiseCmpSubMod
void EltwiseCmpSubMod(uint64_t *result, const uint64_t *operand1, CMPINT cmp, uint64_t bound, uint64_t diff, uint64_t modulus, uint64_t n)
Computes element-wise conditional modular subtraction.
util.hpp