mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-16 04:05:46 +00:00
fix
This commit is contained in:
parent
83d7b72743
commit
ca3046a9a9
@ -76,10 +76,8 @@ void load_random_data(void *data, volk_gnsssdr_type_t type, unsigned int n)
|
||||
else ((uint32_t *)data)[i] = (uint32_t) scaled_rand;
|
||||
break;
|
||||
case 2:
|
||||
// 16 bits dot product saturates very fast even with moderate length vectors
|
||||
// we produce here only 4 bits input range
|
||||
if(type.is_signed) ((int16_t *)data)[i] = (int16_t)((int16_t) scaled_rand % 16);
|
||||
else ((uint16_t *)data)[i] = (uint16_t) (int16_t)((int16_t) scaled_rand % 16);
|
||||
if(type.is_signed) ((int16_t *)data)[i] = (int16_t) scaled_rand;
|
||||
else ((uint16_t *)data)[i] = (uint16_t) scaled_rand;
|
||||
break;
|
||||
case 1:
|
||||
if(type.is_signed) ((int8_t *)data)[i] = (int8_t) scaled_rand;
|
||||
|
Loading…
Reference in New Issue
Block a user