mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-24 08:56:25 -05:00
Refactor and reorganize parity generation functions using inline templates
This commit is contained in:
parent
84d274bd2e
commit
a40d64a3b2
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