Refactor and reorganize parity generation functions using inline templates

This commit is contained in:
Andrea Mazzoleni 2026-06-05 11:01:03 +02:00
parent 84d274bd2e
commit a40d64a3b2
16 changed files with 3629 additions and 4884 deletions

View file

@ -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.
*/