Skip to content

Commit

Permalink
Spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-shterman committed Jan 30, 2025
1 parent 0ae3d84 commit ab98d0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion icicle/include/icicle/fields/quartic_extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class QuarticExtensionField
FF::reduce(
(CONFIG::nonresidue_is_negative
? (FF::mul_wide(xs.real, x0) + FF::template mul_unsigned<CONFIG::nonresidue>(FF::mul_wide(xs.im2, x2)))
: (FF::mul_wide(xs.real, x0)) - FF::template mul_unsigned<CONFIG::nonresidue>(FF::mul_wide(xs.im2, x2)))),
: (FF::mul_wide(xs.real, x0))-FF::template mul_unsigned<CONFIG::nonresidue>(FF::mul_wide(xs.im2, x2)))),
FF::reduce(
(CONFIG::nonresidue_is_negative
? FWide::neg(FF::template mul_unsigned<CONFIG::nonresidue>(FF::mul_wide(xs.im3, x2)))
Expand Down
12 changes: 4 additions & 8 deletions icicle/include/icicle/fields/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ struct
#ifdef __CUDA_ARCH__
__align__(LIMBS_ALIGNMENT(1))
#endif
storage<1>
{
storage<1> {
static constexpr unsigned LC = 1;
uint32_t limbs[1];
};
Expand All @@ -28,8 +27,7 @@ struct
#ifdef __CUDA_ARCH__
__align__(LIMBS_ALIGNMENT(1))
#endif
storage<3>
{
storage<3> {
static constexpr unsigned LC = 3;
uint32_t limbs[3];
};
Expand All @@ -40,8 +38,7 @@ struct
#ifdef __CUDA_ARCH__
__align__(LIMBS_ALIGNMENT(LIMBS_COUNT))
#endif
storage
{
storage {
static_assert(LIMBS_COUNT % 2 == 0, "odd number of limbs is not supported\n");
static constexpr unsigned LC = LIMBS_COUNT;
union { // works only with even LIMBS_COUNT
Expand All @@ -55,7 +52,6 @@ struct
#ifdef __CUDA_ARCH__
__align__(LIMBS_ALIGNMENT(LIMBS_COUNT))
#endif
storage_array
{
storage_array {
storage<LIMBS_COUNT> storages[OMEGAS_COUNT];
};

0 comments on commit ab98d0a

Please sign in to comment.