struct crc_clmul_consts {
unsigned long fold_across_2_longs_const_hi;
unsigned long fold_across_2_longs_const_lo;
unsigned long barrett_reduction_const_1;
unsigned long barrett_reduction_const_2;
};
static const struct crc_clmul_consts crc16_msb_0x8bb7_consts __maybe_unused = {
#ifdef CONFIG_64BIT
.fold_across_2_longs_const_hi = 0x0000000000001faa,
.fold_across_2_longs_const_lo = 0x000000000000a010,
.barrett_reduction_const_1 = 0xfb2d2bfc0e99d245,
.barrett_reduction_const_2 = 0x0000000000008bb7,
#else
.fold_across_2_longs_const_hi = 0x00005890,
.fold_across_2_longs_const_lo = 0x0000f249,
.barrett_reduction_const_1 = 0xfb2d2bfc,
.barrett_reduction_const_2 = 0x00008bb7,
#endif
};
static const struct crc_clmul_consts crc32_msb_0x04c11db7_consts __maybe_unused = {
#ifdef CONFIG_64BIT
.fold_across_2_longs_const_hi = 0x00000000c5b9cd4c,
.fold_across_2_longs_const_lo = 0x00000000e8a45605,
.barrett_reduction_const_1 = 0x826880efa40da72d,
.barrett_reduction_const_2 = 0x0000000004c11db7,
#else
.fold_across_2_longs_const_hi = 0xf200aa66,
.fold_across_2_longs_const_lo = 0x490d678d,
.barrett_reduction_const_1 = 0x826880ef,
.barrett_reduction_const_2 = 0x04c11db7,
#endif
};
static const struct crc_clmul_consts crc32_lsb_0xedb88320_consts __maybe_unused = {
#ifdef CONFIG_64BIT
.fold_across_2_longs_const_hi = 0x65673b4600000000,
.fold_across_2_longs_const_lo = 0x9ba54c6f00000000,
.barrett_reduction_const_1 = 0xb4e5b025f7011641,
.barrett_reduction_const_2 = 0x00000000edb88320,
#else
.fold_across_2_longs_const_hi = 0xccaa009e,
.fold_across_2_longs_const_lo = 0xb8bc6765,
.barrett_reduction_const_1 = 0xf7011641,
.barrett_reduction_const_2 = 0xedb88320,
#endif
};
static const struct crc_clmul_consts crc32_lsb_0x82f63b78_consts __maybe_unused = {
#ifdef CONFIG_64BIT
.fold_across_2_longs_const_hi = 0x3743f7bd00000000,
.fold_across_2_longs_const_lo = 0x3171d43000000000,
.barrett_reduction_const_1 = 0x4869ec38dea713f1,
.barrett_reduction_const_2 = 0x0000000082f63b78,
#else
.fold_across_2_longs_const_hi = 0x493c7d27,
.fold_across_2_longs_const_lo = 0xdd45aab8,
.barrett_reduction_const_1 = 0xdea713f1,
.barrett_reduction_const_2 = 0x82f63b78,
#endif
};
#ifdef CONFIG_64BIT
static const struct crc_clmul_consts crc64_msb_0x42f0e1eba9ea3693_consts __maybe_unused = {
.fold_across_2_longs_const_hi = 0x4eb938a7d257740e,
.fold_across_2_longs_const_lo = 0x05f5c3c7eb52fab6,
.barrett_reduction_const_1 = 0xabc694e836627c39,
.barrett_reduction_const_2 = 0x42f0e1eba9ea3693,
};
#endif
#ifdef CONFIG_64BIT
static const struct crc_clmul_consts crc64_lsb_0x9a6c9329ac4bc9b5_consts __maybe_unused = {
.fold_across_2_longs_const_hi = 0xeadc41fd2ba3d420,
.fold_across_2_longs_const_lo = 0x21e9761e252621ac,
.barrett_reduction_const_1 = 0x27ecfa329aef9f77,
.barrett_reduction_const_2 = 0x9a6c9329ac4bc9b5,
};
#endif