mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 09:26:27 -05:00
Refactor and reorganize parity generation functions using inline templates
This commit is contained in:
parent
677aa0cc90
commit
e0f7f9fa6f
16 changed files with 3629 additions and 4884 deletions
|
|
@ -258,7 +258,10 @@ void raid_register_int(void);
|
|||
/**
|
||||
* Register all the functions based on x86 intructions.
|
||||
*/
|
||||
void raid_register_x86(void);
|
||||
void raid_register_sse2(void);
|
||||
void raid_register_ssse3(void);
|
||||
void raid_register_avx2(void);
|
||||
void raid_register_avx512(void);
|
||||
|
||||
/**
|
||||
* Register all the functions based on GFNI intructions.
|
||||
|
|
@ -281,6 +284,16 @@ const char *raid_rec_tag(int na);
|
|||
*/
|
||||
int raid_selftest(void);
|
||||
|
||||
#if defined(CONFIG_X86) || defined(CONFIG_NEON)
|
||||
struct gfconst16 {
|
||||
uint8_t poly[16];
|
||||
uint8_t low4[16];
|
||||
uint8_t half[16];
|
||||
uint8_t low7[16];
|
||||
};
|
||||
extern const struct gfconst16 gfconst16;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Tables.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue