- 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.
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
#include <algorithm>
|
|
#include <numeric>
|
|
extern "C" {
|
|
#include "openair1/PHY/TOOLS/tools_defs.h"
|
|
struct configmodule_interface_s;
|
|
struct configmodule_interface_s *uniqCfg = NULL;
|
|
void exit_function(const char *file, const char *function, const int line, const char *s, const int assert)
|
|
{
|
|
if (assert) {
|
|
abort();
|
|
} else {
|
|
exit(EXIT_SUCCESS);
|
|
}
|
|
}
|
|
}
|
|
#include <cstdio>
|
|
#include "common/utils/LOG/log.h"
|
|
#include "benchmark/benchmark.h"
|
|
#include "openair1/PHY/TOOLS/phy_test_tools.hpp"
|
|
|
|
static void BM_rotate_cpx_vector(benchmark::State &state)
|
|
{
|
|
int vector_size = state.range(0);
|
|
auto input_complex_16 = generate_random_c16(vector_size);
|
|
auto input_alpha = generate_random_c16(1);
|
|
AlignedVector512<c16_t> output;
|
|
output.resize(vector_size);
|
|
int shift = 2;
|
|
for (auto _ : state) {
|
|
rotate_cpx_vector(input_complex_16.data(), input_alpha.data(), output.data(), vector_size, shift);
|
|
}
|
|
}
|
|
|
|
BENCHMARK(BM_rotate_cpx_vector)->RangeMultiplier(4)->Range(100, 20000);
|
|
|
|
BENCHMARK_MAIN();
|