![]() |
BitPunch McEliece
v0.0.4
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | _BPU_T_Perm_Vector |
Typedefs | |
typedef uint16_t | BPU_T_Perm_Element |
Definition of permutation element type. More... | |
typedef struct _BPU_T_Perm_Vector | BPU_T_Perm_Vector |
Functions | |
void | BPU_permFree (BPU_T_Perm_Vector **p) |
Free dynamically or statically alocated permutation vector. More... | |
int | BPU_permMalloc (BPU_T_Perm_Vector **p, int size) |
Allocate permutation vector elements of size size. More... | |
typedef uint16_t BPU_T_Perm_Element |
Definition of permutation element type.
Definition at line 24 of file permtypes.h.
typedef struct _BPU_T_Perm_Vector BPU_T_Perm_Vector |
Representation of permutation. Elements are numbers from 0 to size-1. Size corresponds to count of columns in matrix.
void BPU_permFree | ( | BPU_T_Perm_Vector ** | p | ) |
Free dynamically or statically alocated permutation vector.
Free dynamically or statically alocated permutation vector.
p | permutation to free |
is_dyn | 0 - staticaly allocated BPU_T_Perm_Vector object or 1 when dynamically |
Definition at line 27 of file permtypes.c.
int BPU_permMalloc | ( | BPU_T_Perm_Vector ** | p, |
int | size | ||
) |
Allocate permutation vector elements of size size.
Allocate permutation vector elements of size size using malloc. After work you have to free memory using call BPU_freePerm(p)
p | vector to be allocated |
size | size, permutation len |
Definition at line 35 of file permtypes.c.