Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: apply clang-format #428

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading