mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-12 10:20:32 +00:00
Remove unused code
This commit is contained in:
parent
2615cd1a5b
commit
0a295f9147
@ -46,28 +46,6 @@
|
|||||||
/* define constants used throughout the library */
|
/* define constants used throughout the library */
|
||||||
const float MAXLOG = 1e7; /* Define infinity */
|
const float MAXLOG = 1e7; /* Define infinity */
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Converts an integer symbol into a vector of bits
|
|
||||||
*
|
|
||||||
* \param[out] binvec_p The binary vector
|
|
||||||
* \param[in] symbol The integer-valued symbol
|
|
||||||
* \param[in] length The length of the binary vector
|
|
||||||
*
|
|
||||||
* This function is used by conv_encode()
|
|
||||||
*/
|
|
||||||
static void itob(int binvec_p[], int symbol, int length)
|
|
||||||
{
|
|
||||||
int counter;
|
|
||||||
/* Go through each bit in the vector */
|
|
||||||
for (counter = 0; counter < length; counter++)
|
|
||||||
{
|
|
||||||
binvec_p[length - counter - 1] = (symbol & 1);
|
|
||||||
symbol = symbol >> 1;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Determines if a symbol has odd (1) or even (0) parity
|
* \brief Determines if a symbol has odd (1) or even (0) parity
|
||||||
@ -136,42 +114,6 @@ static int nsc_enc_bit(int state_out_p[],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief like nsc_enc_bit() but for a RSC code
|
|
||||||
*/
|
|
||||||
static int rsc_enc_bit(int state_out_p[],
|
|
||||||
int input,
|
|
||||||
int state_in,
|
|
||||||
int g[],
|
|
||||||
int KK,
|
|
||||||
int nn)
|
|
||||||
{
|
|
||||||
/* declare variables */
|
|
||||||
int state, i, out_, a_k;
|
|
||||||
|
|
||||||
/* systematic output */
|
|
||||||
out_ = input;
|
|
||||||
|
|
||||||
/* determine feedback bit */
|
|
||||||
a_k = input^parity_counter(g[0]&state_in, KK);
|
|
||||||
|
|
||||||
/* create a word made up of state and feedback bit */
|
|
||||||
state = (a_k << (KK - 1))^state_in;
|
|
||||||
|
|
||||||
/* AND the word with the generators */
|
|
||||||
for (i = 1; i < nn; i++)
|
|
||||||
{
|
|
||||||
/* update output symbol */
|
|
||||||
out_ = (out_ << 1) + parity_counter(state & g[i], KK);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* shift the state to make the new state */
|
|
||||||
state_out_p[0] = state >> 1;
|
|
||||||
return(out_);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Function that creates the transit and output vectors
|
* \brief Function that creates the transit and output vectors
|
||||||
*/
|
*/
|
||||||
@ -204,7 +146,6 @@ static void nsc_transit(int output_p[],
|
|||||||
* \param[in] symbol The hypothetical symbol
|
* \param[in] symbol The hypothetical symbol
|
||||||
* \param[in] nn The length of the received vector
|
* \param[in] nn The length of the received vector
|
||||||
*
|
*
|
||||||
* This function is used by siso()
|
|
||||||
*/
|
*/
|
||||||
static float Gamma(float rec_array[],
|
static float Gamma(float rec_array[],
|
||||||
int symbol,
|
int symbol,
|
||||||
|
Loading…
Reference in New Issue
Block a user