- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
extern unsigned int threegpplte_interleaver_output;
|
|
extern unsigned int threegpplte_interleaver_tmp;
|
|
|
|
static inline void threegpplte_interleaver_reset(void)
|
|
{
|
|
threegpplte_interleaver_output = 0;
|
|
threegpplte_interleaver_tmp = 0;
|
|
}
|
|
|
|
static inline unsigned short threegpplte_interleaver(unsigned short f1,
|
|
unsigned short f2,
|
|
unsigned short K)
|
|
{
|
|
|
|
threegpplte_interleaver_tmp = (threegpplte_interleaver_tmp+(f2<<1));
|
|
|
|
threegpplte_interleaver_output = (threegpplte_interleaver_output + threegpplte_interleaver_tmp + f1 - f2)%K;
|
|
|
|
#ifdef DEBUG_TURBO_ENCODER
|
|
printf("Interleaver output %d\n",threegpplte_interleaver_output);
|
|
#endif
|
|
return(threegpplte_interleaver_output);
|
|
}
|
|
|
|
|
|
static inline short threegpp_interleaver_parameters(unsigned short bytes_per_codeword)
|
|
{
|
|
if (bytes_per_codeword<=64)
|
|
return (bytes_per_codeword-5);
|
|
else if (bytes_per_codeword <=128)
|
|
return (59 + ((bytes_per_codeword-64)>>1));
|
|
else if (bytes_per_codeword <= 256)
|
|
return (91 + ((bytes_per_codeword-128)>>2));
|
|
else if (bytes_per_codeword <= 768)
|
|
return (123 + ((bytes_per_codeword-256)>>3));
|
|
else {
|
|
#ifdef DEBUG_TURBO_ENCODER
|
|
printf("Illegal codeword size !!!\n");
|
|
#endif
|
|
return(-1);
|
|
}
|
|
}
|