#include <cstdlib>
#include "encoder.h"
#include "iobuffer.h"
#include "phy_ldpc_encoder_5gnr.h"
#include "symbols.h"
#include "utils.h"
Go to the source code of this file.
|
LDPC_ADAPTER_P | LdpcSelectAdapterFunc (uint16_t zcSize, uint8_t num_ways) |
|
template<typename T > |
T * | AlignedMalloc (const int size, const unsigned alignment) |
|
static uint8_t | Bitreverse8 (uint8_t x) |
|
static void | AdaptBitsForMod (const uint8_t *bit_seq_in, uint8_t *bytes_out, size_t len, size_t mod_type) |
| Fill-in the bytes of bytes_out with mod_type bits per byte, taken from the bit sequence bit_seq_in . More...
|
|
static void | AdaptBitsFromMod (const uint8_t *vec_in, uint8_t *vec_out, int len, int mod_type) |
|
static uint8_t | SelectBaseMatrixEntry (uint16_t Zc) |
|
static size_t | BitsToBytes (size_t n_bits) |
|
static size_t | LdpcNumInputCols (size_t base_graph) |
|
static size_t | LdpcMaxNumRows (size_t base_graph) |
|
static size_t | LdpcNumInputBits (size_t base_graph, size_t zc) |
|
static size_t | LdpcMaxNumParityBits (size_t base_graph, size_t zc) |
|
static size_t | LdpcMaxNumEncodedBits (size_t base_graph, size_t zc) |
|
static size_t | LdpcNumEncodedBits (size_t base_graph, size_t zc, size_t nRows) |
|
static size_t | LdpcEncodingInputBufSize (size_t base_graph, size_t zc) |
|
static size_t | LdpcEncodingParityBufSize (size_t base_graph, size_t zc) |
|
static size_t | LdpcEncodingEncodedBufSize (size_t base_graph, size_t zc) |
|
static size_t | LdpcGetMinZc () |
|
static size_t | LdpcGetMaxZc () |
|
static void | LdpcEncodeHelper (size_t base_graph, size_t zc, size_t nRows, int8_t *encoded_buffer, int8_t *parity_buffer, const int8_t *input_buffer) |
|
◆ __has_builtin
#define __has_builtin |
( |
|
x | ) |
0 |
◆ AdaptBitsForMod()
static void AdaptBitsForMod |
( |
const uint8_t * |
bit_seq_in, |
|
|
uint8_t * |
bytes_out, |
|
|
size_t |
len, |
|
|
size_t |
mod_type |
|
) |
| |
|
inlinestatic |
Fill-in the bytes of bytes_out
with mod_type
bits per byte, taken from the bit sequence bit_seq_in
.
- Parameters
-
bit_seq_in | The input bit sequence |
bytes_out | The output byte array with mod_type bits per byte. It must have space for ceil(len * 8.0 / mod_type) bytes. |
len | The number of bytes in bit_seq_in |
mod_type | The number of bits in one modulated symbol (e.g., mod_type = 6 for 64-QAM modulation) |
◆ AdaptBitsFromMod()
static void AdaptBitsFromMod |
( |
const uint8_t * |
vec_in, |
|
|
uint8_t * |
vec_out, |
|
|
int |
len, |
|
|
int |
mod_type |
|
) |
| |
|
inlinestatic |
◆ AlignedMalloc()
template<typename T >
T* AlignedMalloc |
( |
const int |
size, |
|
|
const unsigned |
alignment |
|
) |
| |
◆ Bitreverse8()
static uint8_t Bitreverse8 |
( |
uint8_t |
x | ) |
|
|
inlinestatic |
◆ BitsToBytes()
static size_t BitsToBytes |
( |
size_t |
n_bits | ) |
|
|
inlinestatic |
◆ LdpcEncodeHelper()
static void LdpcEncodeHelper |
( |
size_t |
base_graph, |
|
|
size_t |
zc, |
|
|
size_t |
nRows, |
|
|
int8_t * |
encoded_buffer, |
|
|
int8_t * |
parity_buffer, |
|
|
const int8_t * |
input_buffer |
|
) |
| |
|
inlinestatic |
◆ LdpcEncodingEncodedBufSize()
static size_t LdpcEncodingEncodedBufSize |
( |
size_t |
base_graph, |
|
|
size_t |
zc |
|
) |
| |
|
inlinestatic |
◆ LdpcEncodingInputBufSize()
static size_t LdpcEncodingInputBufSize |
( |
size_t |
base_graph, |
|
|
size_t |
zc |
|
) |
| |
|
inlinestatic |
◆ LdpcEncodingParityBufSize()
static size_t LdpcEncodingParityBufSize |
( |
size_t |
base_graph, |
|
|
size_t |
zc |
|
) |
| |
|
inlinestatic |
◆ LdpcGetMaxZc()
static size_t LdpcGetMaxZc |
( |
| ) |
|
|
inlinestatic |
◆ LdpcGetMinZc()
static size_t LdpcGetMinZc |
( |
| ) |
|
|
inlinestatic |
◆ LdpcMaxNumEncodedBits()
static size_t LdpcMaxNumEncodedBits |
( |
size_t |
base_graph, |
|
|
size_t |
zc |
|
) |
| |
|
inlinestatic |
◆ LdpcMaxNumParityBits()
static size_t LdpcMaxNumParityBits |
( |
size_t |
base_graph, |
|
|
size_t |
zc |
|
) |
| |
|
inlinestatic |
◆ LdpcMaxNumRows()
static size_t LdpcMaxNumRows |
( |
size_t |
base_graph | ) |
|
|
inlinestatic |
◆ LdpcNumEncodedBits()
static size_t LdpcNumEncodedBits |
( |
size_t |
base_graph, |
|
|
size_t |
zc, |
|
|
size_t |
nRows |
|
) |
| |
|
inlinestatic |
◆ LdpcNumInputBits()
static size_t LdpcNumInputBits |
( |
size_t |
base_graph, |
|
|
size_t |
zc |
|
) |
| |
|
inlinestatic |
◆ LdpcNumInputCols()
static size_t LdpcNumInputCols |
( |
size_t |
base_graph | ) |
|
|
inlinestatic |
◆ LdpcSelectAdapterFunc()
LDPC_ADAPTER_P LdpcSelectAdapterFunc |
( |
uint16_t |
zcSize, |
|
|
uint8_t |
num_ways |
|
) |
| |
◆ SelectBaseMatrixEntry()
static uint8_t SelectBaseMatrixEntry |
( |
uint16_t |
Zc | ) |
|
|
inlinestatic |