~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mpx-mul4-*.S: Use more portable type syntax for ambiguous instructions.
[catacomb]
/
symm
/
serpent-check.c
diff --git
a/symm/serpent-check.c
b/symm/serpent-check.c
index
7f95ffc
..
190096f
100644
(file)
--- a/
symm/serpent-check.c
+++ b/
symm/serpent-check.c
@@
-32,6
+32,7
@@
#include <string.h>
#include <mLib/bits.h>
#include <string.h>
#include <mLib/bits.h>
+#include <mLib/macros.h>
#include "serpent-sbox.h"
#include "serpent-sbox.h"
@@
-71,7
+72,7
@@
static int check(unsigned a, unsigned b, unsigned c, unsigned d,
*q++ = (a & 1) | ((b & 1) << 1) | ((c & 1) << 2) | ((d & 1) << 3);
a >>= 1; b >>= 1; c >>= 1; d >>= 1;
}
*q++ = (a & 1) | ((b & 1) << 1) | ((c & 1) << 2) | ((d & 1) << 3);
a >>= 1; b >>= 1; c >>= 1; d >>= 1;
}
- return (
memcmp(buf, p, sizeof(buf))
);
+ return (
MEMCMP(buf, ==, p, sizeof(buf)) ? 0 : -1
);
}
#define CHECK(i) do { \
}
#define CHECK(i) do { \