mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-24 06:50:08 +00:00
updating
This commit is contained in:
parent
8991b455fb
commit
505b13a21a
@ -76,8 +76,10 @@ 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:
|
||||
if(type.is_signed) ((int16_t *)data)[i] = (int16_t) scaled_rand;
|
||||
else ((uint16_t *)data)[i] = (uint16_t) scaled_rand;
|
||||
// 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);
|
||||
break;
|
||||
case 1:
|
||||
if(type.is_signed) ((int8_t *)data)[i] = (int8_t) scaled_rand;
|
||||
|
Loading…
x
Reference in New Issue
Block a user