1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2026-04-29 02:01:25 +00:00

Apply readability-isolate-declaration clang-tidy check

This commit is contained in:
Carles Fernandez
2019-08-13 00:19:31 +02:00
parent b16ee3d919
commit 487010346f
97 changed files with 2590 additions and 802 deletions

View File

@@ -95,7 +95,10 @@ void v27_init(v27_t *v, v27_decision_t *decisions, unsigned int decisions_count,
/* C-language butterfly */
#define BFLY(i) \
{ \
unsigned int metric, m0, m1, decision; \
unsigned int metric; \
unsigned int m0; \
unsigned int m1; \
unsigned int decision; \
metric = (v->poly->c0[i] ^ sym0) + (v->poly->c1[i] ^ sym1); \
m0 = v->old_metrics[i] + metric; \
m1 = v->old_metrics[(i) + 32] + (510 - metric); \
@@ -118,7 +121,8 @@ void v27_init(v27_t *v, v27_decision_t *decisions, unsigned int decisions_count,
*/
void v27_update(v27_t *v, const unsigned char *syms, int nbits)
{
unsigned char sym0, sym1;
unsigned char sym0;
unsigned char sym1;
unsigned int *tmp;
int normalize = 0;

View File

@@ -164,7 +164,9 @@ void Viterbi_Decoder::init_trellis_state()
int Viterbi_Decoder::do_acs(const double sym[], int nbits)
{
int t, i, state_at_t;
int t;
int i;
int state_at_t;
float metric;
float max_val;
std::vector<float> pm_t_next(d_states);
@@ -365,7 +367,8 @@ void Viterbi_Decoder::nsc_transit(int output_p[], int trans_p[], int input, cons
int KK, int nn)
{
int nextstate[1];
int state, states;
int state;
int states;
states = (1U << (KK - 1)); /* The number of states: 2^mm */
/* Determine the output and next state for each possible starting state */
@@ -399,7 +402,8 @@ int Viterbi_Decoder::nsc_enc_bit(int state_out_p[], int input, int state_in,
const int g[], int KK, int nn)
{
/* declare variables */
int state, i;
int state;
int i;
int out = 0;
/* create a word made up of state and new input */