Skip to content

Commit

Permalink
Additional syntax improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Sep 29, 2024
1 parent a174ecc commit b1a92eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions math/wide_integer/uintwide_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -1455,22 +1455,22 @@
const bool IsSigned>
constexpr auto rootk(const uintwide_t<Width2, LimbType, AllocatorType, IsSigned>& m, const std::uint_fast8_t k) -> uintwide_t<Width2, LimbType, AllocatorType, IsSigned>; // NOLINT(readability-avoid-const-params-in-decls)

template<typename OtherUnsignedIntegralTypeP,
template<typename OtherIntegralTypeP,
const size_t Width2,
typename LimbType,
typename AllocatorType,
const bool IsSigned>
constexpr auto pow(const uintwide_t<Width2, LimbType, AllocatorType, IsSigned>& b, const OtherUnsignedIntegralTypeP& p) -> uintwide_t<Width2, LimbType, AllocatorType, IsSigned>;
constexpr auto pow(const uintwide_t<Width2, LimbType, AllocatorType, IsSigned>& b, const OtherIntegralTypeP& p) -> uintwide_t<Width2, LimbType, AllocatorType, IsSigned>;

template<typename OtherUnsignedIntegralTypeP,
typename OtherUnsignedIntegralTypeM,
template<typename OtherIntegralTypeP,
typename OtherIntegralTypeM,
const size_t Width2,
typename LimbType,
typename AllocatorType,
const bool IsSigned>
constexpr auto powm(const uintwide_t<Width2, LimbType, AllocatorType, IsSigned>& b,
const OtherUnsignedIntegralTypeP& p,
const OtherUnsignedIntegralTypeM& m) -> uintwide_t<Width2, LimbType, AllocatorType, IsSigned>;
const OtherIntegralTypeP& p,
const OtherIntegralTypeM& m) -> uintwide_t<Width2, LimbType, AllocatorType, IsSigned>;

template<const size_t Width2,
typename LimbType,
Expand Down
1 change: 1 addition & 0 deletions test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ auto test_uintwide_t_0008192_by_0012288() -> bool;
auto test_uintwide_t_0012288_by_0008192() -> bool;
auto test_uintwide_t_0000032_by_0000032_4_by_4() -> bool;
auto test_uintwide_t_0000064_by_0000064_4_by_4() -> bool;
auto run() -> bool;

auto test_uintwide_t_small_bits() -> bool
{
Expand Down

0 comments on commit b1a92eb

Please sign in to comment.