Skip to content

Commit b5bc5d8

Browse files
committed
Avoid unused parameter [skip ci]
fix missing new line & unused parameter
1 parent 04702bc commit b5bc5d8

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/AVX2/shuffle_arithmetic.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,10 @@ void compute_P3(const mayo_params_t* p, const uint64_t* P1, uint64_t *P2, const
400400
// [ P3*S2 = P2 ]
401401
static inline void m_calculate_PS_SPS(const mayo_params_t *p, const uint64_t *P1, const uint64_t *P2, const uint64_t *P3, const unsigned char *S,
402402
uint64_t *SPS) {
403-
const int o = PARAM_o(p);
404-
const int v = PARAM_v(p);
405-
const int k = PARAM_k(p);
403+
(void) p;
404+
const int o = PARAM_NAME(o);
405+
const int v = PARAM_NAME(v);
406+
const int k = PARAM_NAME(k);
406407
const int n = o + v;
407408
/* Old approach which is constant time but doesn't have to be */
408409
unsigned char S1[V_MAX*K_MAX]; // == N-O, K

src/neon/echelon_form_loop.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ for (int row = pivot_row_lower_bound; row < nrows; row++) {
5454
}
5555
}
5656

57-
pivot_row += (-(int32_t)(~pivot_is_zero));
57+
pivot_row += (-(int32_t)(~pivot_is_zero));
58+

src/neon/shuffle_arithmetic.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ inline void Ot_times_P1O_P2(const uint64_t *P1O_P2, uint8x16_t *O_multabs, uint6
230230

231231
static
232232
inline void P1P1t_times_O(const mayo_params_t* p, const uint64_t *P1, const unsigned char *O, uint64_t *acc){
233+
(void) p;
233234
const uint8x16_t low_nibble_mask = vdupq_n_u8( 0xf );
234235

235236
uint8x16_t O_multabs[O_NEON_ROUND_UP/2*V_MAX];
@@ -416,9 +417,10 @@ void compute_P3(const mayo_params_t* p, const uint64_t* P1, uint64_t *P2, const
416417
// [ P3*S2 = P2 ]
417418
static inline void m_calculate_PS_SPS(const mayo_params_t *p, const uint64_t *P1, const uint64_t *P2, const uint64_t *P3, const unsigned char *S,
418419
uint64_t *SPS) {
419-
const int o = PARAM_o(p);
420-
const int v = PARAM_v(p);
421-
const int k = PARAM_k(p);
420+
(void) p;
421+
const int o = PARAM_NAME(o);
422+
const int v = PARAM_NAME(v);
423+
const int k = PARAM_NAME(k);
422424
const int n = o + v;
423425
/* Old approach which is constant time but doesn't have to be */
424426
unsigned char S1[V_MAX*K_MAX]; // == N-O, K

0 commit comments

Comments
 (0)