erasure_code: expose base implementation of init_tables

Expose ec_init_tables_base(), which should be used
with ec_encode_data_base() and ec_encode_data_update_base().

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara
2023-11-14 17:09:01 +00:00
committed by Tomasz Kantecki
parent 65e89717df
commit f971f02309
5 changed files with 28 additions and 14 deletions

View File

@@ -73,6 +73,14 @@ extern "C" {
void ec_init_tables(int k, int rows, unsigned char* a, unsigned char* gftbls);
/**
* @brief Initialize tables for fast Erasure Code encode and decode, runs baseline version.
*
* Baseline version of ec_encode_data() with same parameters.
*/
void ec_init_tables_base(int k, int rows, unsigned char* a, unsigned char* gftbls);
/**
* @brief Generate or decode erasure codes on blocks of data, runs appropriate version.
*