aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/madd/madd.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/madd/madd.c')
-rw-r--r--test/monniaux/madd/madd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/monniaux/madd/madd.c b/test/monniaux/madd/madd.c
new file mode 100644
index 00000000..e1e5eeb7
--- /dev/null
+++ b/test/monniaux/madd/madd.c
@@ -0,0 +1,7 @@
+unsigned madd(unsigned a, unsigned b, unsigned c) {
+ return a + b*c;
+}
+
+unsigned madd2(unsigned a, unsigned b, unsigned c) {
+ return c + b*a;
+}