Full Support for TM4 HARQ, excpept for PUSCH precoder at this moment.
This commit is contained in:
@@ -58,7 +58,7 @@ unsigned int taus(void)
|
||||
s2 = (((s2 & 0xFFFFFFF0) << 17)^ b);
|
||||
return s0 ^ s1 ^ s2;
|
||||
}
|
||||
|
||||
#if 1
|
||||
void set_taus_seed(unsigned int seed_init)
|
||||
{
|
||||
|
||||
@@ -87,9 +87,11 @@ void set_taus_seed(unsigned int seed_init)
|
||||
s2 = result;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/* void set_taus_seed(unsigned int seed_init)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
void set_taus_seed(unsigned int seed_init)
|
||||
{
|
||||
|
||||
#ifdef USER_MODE
|
||||
@@ -113,18 +115,17 @@ void set_taus_seed(unsigned int seed_init)
|
||||
s2 = (unsigned int)0xfe1a133e;
|
||||
#else
|
||||
// Use reentrant version of rand48 to ensure that no conflicts with other generators occur */
|
||||
// srand48_r((long int)seed_init, &buffer);
|
||||
// mrand48_r(&buffer, (long int *)&result);
|
||||
// s0 = result;
|
||||
// mrand48_r(&buffer, (long int *)&result);
|
||||
// s1 = result;
|
||||
// mrand48_r(&buffer, (long int *)&result);
|
||||
// s2 = result;
|
||||
//#endif
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
srand48_r((long int)seed_init, &buffer);
|
||||
mrand48_r(&buffer, (long int *)&result);
|
||||
s0 = result;
|
||||
mrand48_r(&buffer, (long int *)&result);
|
||||
s1 = result;
|
||||
mrand48_r(&buffer, (long int *)&result);
|
||||
s2 = result;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MAIN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user