From 4e3b46ca2a30abf520672f4b1a28f91f171f6e7e Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Sat, 16 Mar 2019 18:24:03 +0100 Subject: nor implemente --- test/monniaux/nand/nand.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/monniaux/nand') diff --git a/test/monniaux/nand/nand.c b/test/monniaux/nand/nand.c index bcd30396..86cf84bd 100644 --- a/test/monniaux/nand/nand.c +++ b/test/monniaux/nand/nand.c @@ -8,7 +8,11 @@ unsigned nand(unsigned x, unsigned y) { return ~(x & y); } +unsigned nor(unsigned x, unsigned y) { + return ~(x | y); +} + int main() { unsigned x = 0xF4, y = 0x33; - printf("%X\n", nand(x, y)); + printf("%X\n", nor(x, y)); } -- cgit