diff --git a/NOTICE b/NOTICE index 411fc43d3..d5acd8ccc 100644 --- a/NOTICE +++ b/NOTICE @@ -1,8 +1,8 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION This software incorporates components from the projects listed below. The original copyright notices -and the licenses under which Microsoft received such components are set forth below and are provided for -informational purposes only. Microsoft reserves all rights not expressly granted herein, whether by +and the licenses under which Microsoft received such components are set forth below and are provided for +informational purposes only. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise. This software includes parts of the BLAKE2 library (https://github.com/BLAKE2/BLAKE2). diff --git a/native/examples/4_bgv_basics.cpp b/native/examples/4_bgv_basics.cpp index 1e1597e65..1836e5e1b 100644 --- a/native/examples/4_bgv_basics.cpp +++ b/native/examples/4_bgv_basics.cpp @@ -212,4 +212,4 @@ void example_bgv_basics() rate of noise budget in an application, one needs to carefully choose the location to insert modulus switching and manually choose coeff_modulus. */ -} \ No newline at end of file +} diff --git a/native/src/seal/c/modulus.h b/native/src/seal/c/modulus.h index a58a1258c..cf88395a9 100644 --- a/native/src/seal/c/modulus.h +++ b/native/src/seal/c/modulus.h @@ -54,4 +54,4 @@ SEAL_C_FUNC CoeffModulus_BFVDefault(uint64_t poly_modulus_degree, int sec_level, SEAL_C_FUNC CoeffModulus_Create1(uint64_t poly_modulus_degree, uint64_t length, int *bit_sizes, void **coeffs); SEAL_C_FUNC CoeffModulus_Create2( - uint64_t poly_modulus_degree, uint64_t length, int *bit_sizes, void *plain_modulus, void **coeffs); \ No newline at end of file + uint64_t poly_modulus_degree, uint64_t length, int *bit_sizes, void *plain_modulus, void **coeffs); diff --git a/native/src/seal/memorymanager.h b/native/src/seal/memorymanager.h index f27d556a3..65c3d6e82 100644 --- a/native/src/seal/memorymanager.h +++ b/native/src/seal/memorymanager.h @@ -483,7 +483,7 @@ namespace seal instructions to the memory manager profile for internal logic. */ template - SEAL_NODISCARD static inline MemoryPoolHandle GetPool(mm_prof_opt_t prof_opt, Args &&...args) + SEAL_NODISCARD static inline MemoryPoolHandle GetPool(mm_prof_opt_t prof_opt, Args &&... args) { switch (prof_opt) { diff --git a/native/src/seal/util/common.h b/native/src/seal/util/common.h index 726b817bd..a31dbe58e 100644 --- a/native/src/seal/util/common.h +++ b/native/src/seal/util/common.h @@ -178,7 +178,7 @@ namespace seal } template ::value>> - SEAL_NODISCARD inline constexpr T mul_safe(T in1, T in2, Args &&...args) + SEAL_NODISCARD inline constexpr T mul_safe(T in1, T in2, Args &&... args) { return mul_safe(mul_safe(in1, in2), mul_safe(std::forward(args)...)); } @@ -214,7 +214,7 @@ namespace seal } template ::value>> - SEAL_NODISCARD inline constexpr T add_safe(T in1, T in2, Args &&...args) + SEAL_NODISCARD inline constexpr T add_safe(T in1, T in2, Args &&... args) { return add_safe(add_safe(in1, in2), add_safe(std::forward(args)...)); } @@ -318,25 +318,25 @@ namespace seal } template ::value>> - SEAL_NODISCARD inline constexpr bool sum_fits_in(Args &&...args) + SEAL_NODISCARD inline constexpr bool sum_fits_in(Args &&... args) { return fits_in(add_safe(std::forward(args)...)); } template ::value>> - SEAL_NODISCARD inline constexpr bool sum_fits_in(T in1, Args &&...args) + SEAL_NODISCARD inline constexpr bool sum_fits_in(T in1, Args &&... args) { return fits_in(add_safe(in1, std::forward(args)...)); } template ::value>> - SEAL_NODISCARD inline constexpr bool product_fits_in(Args &&...args) + SEAL_NODISCARD inline constexpr bool product_fits_in(Args &&... args) { return fits_in(mul_safe(std::forward(args)...)); } template ::value>> - SEAL_NODISCARD inline constexpr bool product_fits_in(T in1, Args &&...args) + SEAL_NODISCARD inline constexpr bool product_fits_in(T in1, Args &&... args) { return fits_in(mul_safe(in1, std::forward(args)...)); } diff --git a/native/src/seal/util/iterator.h b/native/src/seal/util/iterator.h index 78ae72181..8d076b4b5 100644 --- a/native/src/seal/util/iterator.h +++ b/native/src/seal/util/iterator.h @@ -1845,7 +1845,7 @@ namespace seal template IterTuple(const std::tuple &tp) : IterTuple(seal_apply( - [](auto &&...args) -> IterTuple { return { std::forward(args)... }; }, + [](auto &&... args) -> IterTuple { return { std::forward(args)... }; }, std::forward(tp))) { static_assert( @@ -1855,7 +1855,7 @@ namespace seal template IterTuple(std::tuple &&tp) : IterTuple(seal_apply( - [](auto &&...args) -> IterTuple && { return { std::forward(args)... }; }, + [](auto &&... args) -> IterTuple && { return { std::forward(args)... }; }, std::forward(tp))) { static_assert( @@ -1869,7 +1869,7 @@ namespace seal SEAL_NODISCARD inline value_type operator*() const noexcept { return seal_apply( - [this](auto &&...args) -> value_type { + [this](auto &&... args) -> value_type { return { *first_, std::forward(args)... }; }, *rest_); @@ -2281,13 +2281,13 @@ namespace seal } template - SEAL_NODISCARD inline auto iter(Ts &&...ts) noexcept -> typename iterator_internal::IterType::type + SEAL_NODISCARD inline auto iter(Ts &&... ts) noexcept -> typename iterator_internal::IterType::type { return { std::forward(ts)... }; } template - SEAL_NODISCARD inline auto reverse_iter(Ts &&...ts) noexcept + SEAL_NODISCARD inline auto reverse_iter(Ts &&... ts) noexcept -> ReverseIter::type> { return typename iterator_internal::IterType::type(std::forward(ts)...); diff --git a/native/src/seal/util/pointer.h b/native/src/seal/util/pointer.h index a8daf805b..53af746f1 100644 --- a/native/src/seal/util/pointer.h +++ b/native/src/seal/util/pointer.h @@ -243,7 +243,7 @@ namespace seal // Move when T is not seal_byte template - Pointer(Pointer &&source, Args &&...args) + Pointer(Pointer &&source, Args &&... args) { // Cannot acquire a non-pool pointer of different type if (!source.head_ && source.data_) @@ -482,7 +482,7 @@ namespace seal } template - Pointer(class MemoryPoolHead *head, Args &&...args) + Pointer(class MemoryPoolHead *head, Args &&... args) { #ifdef SEAL_DEBUG if (!head) @@ -778,7 +778,7 @@ namespace seal // Move when T is not seal_byte template - ConstPointer(Pointer &&source, Args &&...args) + ConstPointer(Pointer &&source, Args &&... args) { // Cannot acquire a non-pool pointer of different type if (!source.head_ && source.data_) @@ -874,7 +874,7 @@ namespace seal // Move when T is not seal_byte template - ConstPointer(ConstPointer &&source, Args &&...args) + ConstPointer(ConstPointer &&source, Args &&... args) { // Cannot acquire a non-pool pointer of different type if (!source.head_ && source.data_) @@ -1170,7 +1170,7 @@ namespace seal } template - ConstPointer(class MemoryPoolHead *head, Args &&...args) + ConstPointer(class MemoryPoolHead *head, Args &&... args) { #ifdef SEAL_DEBUG if (!head) @@ -1218,7 +1218,7 @@ namespace seal typename T_, typename... Args, typename = std::enable_if_t::type>::type>::value>> - SEAL_NODISCARD inline auto allocate(MemoryPool &pool, Args &&...args) + SEAL_NODISCARD inline auto allocate(MemoryPool &pool, Args &&... args) { using T = typename std::remove_cv::type>::type; return Pointer(pool.get_for_byte_count(sizeof(T)), std::forward(args)...); @@ -1229,7 +1229,7 @@ namespace seal typename T_, typename... Args, typename = std::enable_if_t::type>::type>::value>> - SEAL_NODISCARD inline auto allocate(std::size_t count, MemoryPool &pool, Args &&...args) + SEAL_NODISCARD inline auto allocate(std::size_t count, MemoryPool &pool, Args &&... args) { using T = typename std::remove_cv::type>::type; return Pointer(pool.get_for_byte_count(mul_safe(count, sizeof(T))), std::forward(args)...);