![]() |
BitPunch McEliece
v0.0.4
|
Go to the source code of this file.
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... | |
| 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.