ubsan detected issue

This commit is contained in:
laurent
2023-04-19 22:12:08 +02:00
committed by Robert Schmidt
parent 3eabc2fe01
commit 9509bdfdc1
3 changed files with 2 additions and 3 deletions
@@ -1773,7 +1773,6 @@ static inline void nr_element_sign(c16_t *a, // a
* Compute the matrix determinant for 4x4 Matrix
*
* */
<<<<<<< HEAD
static void nr_determin(int size,
c16_t *a44[][size], //
c16_t *ad_bc, // ad-bc
+1 -1
View File
@@ -873,7 +873,7 @@ int main(int argc, char **argv)
if (input_fd != NULL || n_trials == 1) max_rounds=1;
if(1<<ptrs_time_density >= nb_symb_sch)
if (enable_ptrs && 1 << ptrs_time_density >= nb_symb_sch)
pdu_bit_map &= ~PUSCH_PDU_BITMAP_PUSCH_PTRS; // disable PUSCH PTRS
printf("\n");
+1 -1
View File
@@ -200,7 +200,7 @@ double __attribute__ ((no_sanitize("address", "undefined"))) gaussZiggurat(doubl
}
hz = SHR3;
iz = hz & 127;
return abs(hz) < kn[iz] ? hz * wn[iz] : nfix();
return hz != INT32_MIN && abs(hz) < kn[iz] ? hz * wn[iz] : nfix();
}
#ifdef MAIN