Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyasa committed Dec 5, 2024
1 parent 820ee9e commit a880d5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions icicle/include/icicle/fields/host_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ namespace host_math {
/**
* @brief Return upper/lower half of x (into r).
* @tparam NLIMBS Number of 32bit limbs in r.
* @tparam HIGHER what half to be returned. deafult is true=upper.
* @tparam HIGHER what half to be returned. default is true=upper.
* @param x 2*NLIMBS sized multiprecision input.
* @param r NLIMBS sized multiprecision upper/lower half output.
*/
Expand Down Expand Up @@ -286,14 +286,14 @@ namespace host_math {
/**
* @brief Return upper/lower half of x (into r).
* @tparam NLIMBS Number of 32bit limbs in r.
* @tparam HIGHER what half to be returned. deafult is true=upper.
* @tparam HIGHER what half to be returned. default is true=upper.
* @param x 2*NLIMBS sized multiprecision input.
* @param r NLIMBS sized multiprecision upper/lower half output.
*/
template <unsigned NLIMBS, bool HIGHER = true>
static HOST_INLINE void get_half_64(const uint64_t* x, uint64_t* r)
{
const unsigned nlimbs64 = NLIMBS / 2; // NLIMBS reffer to number of 32bit limbs
const unsigned nlimbs64 = NLIMBS / 2; // NLIMBS refer to number of 32bit limbs
for (unsigned i = 0; i < nlimbs64; i++) {
r[i] = x[HIGHER ? i + nlimbs64 : i];
}
Expand Down

0 comments on commit a880d5d

Please sign in to comment.