/* Make RAID-6 tables. This is a host user space program to be run at compile time.  */
static uint8_t gfmul(uint8_t a, uint8_t b)
/* Make RAID-6 tables. This is a host user space program to be run at compile time.  */
static uint8_t gfmul(uint8_t a, uint8_t b)
{
	uint8_t v = 0;
	while (b) {
		if (b & 1)
			v ^= a;
		a = (a << 1) ^ (a & 0x80 ? 0x1d : 0);
		b >>= 1;
	}
	return v;
}