diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-03-16 19:00:55 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-03-16 19:00:55 +0100 |
commit | 2227019e15866870f87488630f17cbb0797d1786 (patch) | |
tree | 2a69968dc2dae750de701aab41e634690396785e /test/monniaux | |
parent | 4e3b46ca2a30abf520672f4b1a28f91f171f6e7e (diff) | |
download | compcert-kvx-2227019e15866870f87488630f17cbb0797d1786.tar.gz compcert-kvx-2227019e15866870f87488630f17cbb0797d1786.zip |
nxor
Diffstat (limited to 'test/monniaux')
-rw-r--r-- | test/monniaux/nand/nand.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/monniaux/nand/nand.c b/test/monniaux/nand/nand.c index 86cf84bd..f808f311 100644 --- a/test/monniaux/nand/nand.c +++ b/test/monniaux/nand/nand.c @@ -12,7 +12,11 @@ unsigned nor(unsigned x, unsigned y) { return ~(x | y); } +unsigned nxor(unsigned x, unsigned y) { + return ~(x ^ y); +} + int main() { unsigned x = 0xF4, y = 0x33; - printf("%X\n", nor(x, y)); + printf("%X\n", nxor(x, y)); } |