~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/asm-common.h (x86), and knock-on: Add macros for full-size regs.
[catacomb]
/
math
/
bittest.c
diff --git
a/math/bittest.c
b/math/bittest.c
index
5f7b1d7
..
e335286
100644
(file)
--- a/
math/bittest.c
+++ b/
math/bittest.c
@@
-29,6
+29,7
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#include <mLib/macros.h>
#include "bitops.h"
#include "mpx.h"
#include "bitops.h"
#include "mpx.h"
@@
-45,7
+46,7
@@
int main(void)
buf[2] = B##string(1u, 0u) & 1u? '1' : '0'; \
buf[3] = B##string(1u, 1u) & 1u? '1' : '0'; \
buf[4] = 0; \
buf[2] = B##string(1u, 0u) & 1u? '1' : '0'; \
buf[3] = B##string(1u, 1u) & 1u? '1' : '0'; \
buf[4] = 0; \
- if (
strcmp(buf, ref) != 0) {
\
+ if (
STRCMP(buf, !=, ref)) {
\
fprintf(stderr, "mismatch ref `%s' != buf `%s'\n", ref, buf); \
rc = 1; \
} \
fprintf(stderr, "mismatch ref `%s' != buf `%s'\n", ref, buf); \
rc = 1; \
} \