|
liberasurecode 1.8.0
Erasure Code API library
|
#include <dlfcn.h>#include <alg_sig.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | GALOIS_SINGLE_MULTIPLY "galois_single_multiply" |
| #define | GALOIS_UNINIT "galois_uninit_field" |
Functions | |
| static galois_single_multiply_func | get_galois_multi_func (void *handle) |
| static void | stub_galois_uninit_field (int w) |
| static galois_uninit_field_func | get_galois_uninit_func (void *handle) |
| static void * | get_jerasure_sohandle (void) |
| static int | load_gf_functions (void *sohandle, struct jerasure_mult_routines *routines) |
| static alg_sig_t * | init_alg_sig_w8 (void *jerasure_sohandle, int sig_len) |
| static alg_sig_t * | init_alg_sig_w16 (void *jerasure_sohandle, int sig_len) |
| __attribute__ ((visibility("internal"))) | |
| static int | compute_w8_alg_sig_32 (alg_sig_t *alg_sig_handle, char *buf, int len, char *sig) |
| static int | compute_w16_alg_sig_64 (alg_sig_t *alg_sig_handle, char *buf, int len, char *sig) |
| static int | compute_w16_alg_sig_32 (alg_sig_t *alg_sig_handle, char *buf, int len, char *sig) |
| static int | compute_alg_sig_32 (alg_sig_t *alg_sig_handle, char *buf, int len, char *sig) |
| static int | compute_alg_sig_64 (alg_sig_t *alg_sig_handle, char *buf, int len, char *sig) |
Variables | |
| static int | valid_pairs [][2] = { { 8, 32}, {16, 32}, {16, 64}, {-1, -1} } |
| __attribute__ | ( | (visibility("internal")) | ) |
Definition at line 233 of file alg_sig.c.
References get_jerasure_sohandle(), init_alg_sig_w16(), init_alg_sig_w8(), and valid_pairs.
|
static |
Definition at line 427 of file alg_sig.c.
References compute_w16_alg_sig_32(), and compute_w8_alg_sig_32().
|
static |
Definition at line 438 of file alg_sig.c.
References compute_w16_alg_sig_64().
|
static |
This is the loop to optimize. It is currently optimized enough : using Horner's alg., shortened mult. tables, and other tricks.
Definition at line 380 of file alg_sig.c.
Referenced by compute_alg_sig_32().
|
static |
This is the loop to optimize. It is currently optimized enough : using Horner's alg., shortened mult. tables, and other tricks.
Definition at line 325 of file alg_sig.c.
Referenced by compute_alg_sig_64().
|
static |
This is the loop to optimize. It is currently optimized enough : using Horner's alg., shortened mult. tables, and other tricks.
Definition at line 296 of file alg_sig.c.
Referenced by compute_alg_sig_32().
|
static |
Definition at line 36 of file alg_sig.c.
References GALOIS_SINGLE_MULTIPLY.
Referenced by load_gf_functions().
|
static |
Definition at line 52 of file alg_sig.c.
References GALOIS_UNINIT.
Referenced by load_gf_functions().
|
static |
Definition at line 67 of file alg_sig.c.
Referenced by __attribute__().
|
static |
Definition at line 153 of file alg_sig.c.
References load_gf_functions().
Referenced by __attribute__().
|
static |
Definition at line 96 of file alg_sig.c.
References load_gf_functions().
Referenced by __attribute__().
|
static |
It is possible that the underlying Jerasure implementation is old (pre-jerasure.org). If so, there is not an uninit function, so these tests will fail.
Since nothing is using alg_sig at the moment, we stub the uninit function to unblock the tests. Once we plug the internal GF functions into alg_sig, this can jsut go away.
Definition at line 72 of file alg_sig.c.
References get_galois_multi_func(), get_galois_uninit_func(), and stub_galois_uninit_field().
Referenced by init_alg_sig_w16(), and init_alg_sig_w8().
|
static |
Definition at line 50 of file alg_sig.c.
Referenced by load_gf_functions().
|
static |
Definition at line 34 of file alg_sig.c.
Referenced by __attribute__().