mktables.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | mktables.c (daaa5f7cbee37dfc8464d350f1eacd6e94b278cc) |
---|---|
1/* -*- linux-c -*- ------------------------------------------------------- * 2 * 3 * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved 4 * 5 * This file is part of the Linux kernel, and is made available under 6 * the terms of the GNU General Public License version 2 or (at your 7 * option) any later version; incorporated herein by reference. 8 * --- 46 unchanged lines hidden (view full) --- 55 56int main(int argc, char *argv[]) 57{ 58 int i, j, k; 59 uint8_t v; 60 uint8_t exptbl[256], invtbl[256]; 61 62 printf("#include <linux/raid/pq.h>\n"); | 1/* -*- linux-c -*- ------------------------------------------------------- * 2 * 3 * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved 4 * 5 * This file is part of the Linux kernel, and is made available under 6 * the terms of the GNU General Public License version 2 or (at your 7 * option) any later version; incorporated herein by reference. 8 * --- 46 unchanged lines hidden (view full) --- 55 56int main(int argc, char *argv[]) 57{ 58 int i, j, k; 59 uint8_t v; 60 uint8_t exptbl[256], invtbl[256]; 61 62 printf("#include <linux/raid/pq.h>\n"); |
63 printf("#include <linux/export.h>\n"); |
|
63 64 /* Compute multiplication table */ 65 printf("\nconst u8 __attribute__((aligned(256)))\n" 66 "raid6_gfmul[256][256] =\n" 67 "{\n"); 68 for (i = 0; i < 256; i++) { 69 printf("\t{\n"); 70 for (j = 0; j < 256; j += 8) { --- 62 unchanged lines hidden --- | 64 65 /* Compute multiplication table */ 66 printf("\nconst u8 __attribute__((aligned(256)))\n" 67 "raid6_gfmul[256][256] =\n" 68 "{\n"); 69 for (i = 0; i < 256; i++) { 70 printf("\t{\n"); 71 for (j = 0; j < 256; j += 8) { --- 62 unchanged lines hidden --- |