Skip to content

Commit

Permalink
fix: apply clang-format (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
tongke6 authored Dec 6, 2024
1 parent 70f8efd commit ced3383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yacl/math/galois_field/factory/intel_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class IntrinsicField : public GFScalarSketch<T> {
// compile-time utilities for generating galois field basis for uint64_t and
// uint128_t
constexpr std::array<T, sizeof(T) * 8> GenGfBasisArray() {
std::array<T, sizeof(T)* 8> basis = {0};
std::array<T, sizeof(T) * 8> basis = {0};
uint128_t one = yacl::MakeUint128(0, 1);
for (size_t i = 0; i < sizeof(T) * 8; ++i) {
basis[i] = one << i;
Expand Down
2 changes: 1 addition & 1 deletion yacl/math/mpint/tommath_ext_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "yacl/base/int128.h"

#define MP_BITS_TO_DIGITS(bits) ((bits) + MP_DIGIT_BIT - 1) / MP_DIGIT_BIT
#define MP_BYTES_TO_DIGITS(bytes) MP_BITS_TO_DIGITS((bytes)*CHAR_BIT)
#define MP_BYTES_TO_DIGITS(bytes) MP_BITS_TO_DIGITS((bytes) * CHAR_BIT)

void mpx_init(mp_int *a);
void mpx_reserve(mp_int *a, size_t n_digits);
Expand Down

0 comments on commit ced3383

Please sign in to comment.