~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mp-fibonacci.c: Fix spacing in comment.
[catacomb]
/
math
/
gfx-sqr-mktab.c
diff --git
a/math/gfx-sqr-mktab.c
b/math/gfx-sqr-mktab.c
index
1ecd995
..
efc610a
100644
(file)
--- a/
math/gfx-sqr-mktab.c
+++ b/
math/gfx-sqr-mktab.c
@@
-60,24
+60,21
@@
fputs("\
* Bit spacing table for binary polynomial squaring\n\
*/\n\
\n\
* Bit spacing table for binary polynomial squaring\n\
*/\n\
\n\
-#ifndef GFX_SQR_TAB_H\n\
-#define GFX_SQR_TAB_H\n\
+#include <mLib/bits.h>\n\
\n\
\n\
-
#define GFX_SQRTAB { \\
\n\
+
const uint16 gfx_sqrtab[256] = {
\n\
", stdout);
for (i = 0; i < 256; i++) {
printf("0x%04x", t[i]);
if (i == 255)
", stdout);
for (i = 0; i < 256; i++) {
printf("0x%04x", t[i]);
if (i == 255)
- puts("
\\\n}\n
");
+ puts("
\n};
");
else if (i % 8 == 7)
else if (i % 8 == 7)
- fputs(",
\\
\n ", stdout);
+ fputs(",\n ", stdout);
else
fputs(", ", stdout);
}
else
fputs(", ", stdout);
}
- fputs("#endif\n", stdout);
-
if (fclose(stdout)) {
fprintf(stderr, "error writing data\n");
exit(EXIT_FAILURE);
if (fclose(stdout)) {
fprintf(stderr, "error writing data\n");
exit(EXIT_FAILURE);