srsLTE: apply CLang Format in sch.c

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent 905273b36a
commit dcb3bc0135

@ -86,7 +86,8 @@ static inline float get_beta_cqi_offset(uint32_t idx)
return ret; return ret;
} }
float srslte_sch_beta_cqi(uint32_t I_cqi) { float srslte_sch_beta_cqi(uint32_t I_cqi)
{
if (I_cqi < 16) { if (I_cqi < 16) {
return get_beta_cqi_offset(I_cqi); return get_beta_cqi_offset(I_cqi);
} else { } else {
@ -94,8 +95,9 @@ float srslte_sch_beta_cqi(uint32_t I_cqi) {
} }
} }
uint32_t srslte_sch_find_Ioffset_ack(float beta) { uint32_t srslte_sch_find_Ioffset_ack(float beta)
for (int i=0;i<16;i++) { {
for (int i = 0; i < 16; i++) {
if (get_beta_harq_offset(i) >= beta) { if (get_beta_harq_offset(i) >= beta) {
return i; return i;
} }
@ -103,8 +105,9 @@ uint32_t srslte_sch_find_Ioffset_ack(float beta) {
return 0; return 0;
} }
uint32_t srslte_sch_find_Ioffset_ri(float beta) { uint32_t srslte_sch_find_Ioffset_ri(float beta)
for (int i=0;i<16;i++) { {
for (int i = 0; i < 16; i++) {
if (get_beta_ri_offset(i) >= beta) { if (get_beta_ri_offset(i) >= beta) {
return i; return i;
} }
@ -112,8 +115,9 @@ uint32_t srslte_sch_find_Ioffset_ri(float beta) {
return 0; return 0;
} }
uint32_t srslte_sch_find_Ioffset_cqi(float beta) { uint32_t srslte_sch_find_Ioffset_cqi(float beta)
for (int i=0;i<16;i++) { {
for (int i = 0; i < 16; i++) {
if (get_beta_cqi_offset(i) >= beta) { if (get_beta_cqi_offset(i) >= beta) {
return i; return i;
} }
@ -852,7 +856,7 @@ static void ulsch_interleave_qm6(const uint8_t* g_bits,
q_bits[write_byte_idx + 1] |= w << 4; q_bits[write_byte_idx + 1] |= w << 4;
break; break;
default: default:
/* Do nothing */; /* Do nothing */;
} }
bit_read_idx += 6; bit_read_idx += 6;
@ -905,7 +909,7 @@ static void ulsch_interleave_qm6(const uint8_t* g_bits,
q_bits[write_byte_idx + 1] |= w << 4; q_bits[write_byte_idx + 1] |= w << 4;
break; break;
default: default:
/* Do nothing */; /* Do nothing */;
} }
bit_read_idx += 6; bit_read_idx += 6;

Loading…
Cancel
Save