aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/madd/madd_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/madd/madd_run.c')
-rw-r--r--test/monniaux/madd/madd_run.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/monniaux/madd/madd_run.c b/test/monniaux/madd/madd_run.c
new file mode 100644
index 00000000..28cdf9b3
--- /dev/null
+++ b/test/monniaux/madd/madd_run.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <stdint.h>
+
+extern uint32_t madd(uint32_t a, uint32_t b, uint32_t c);
+extern uint64_t maddl(uint64_t a, uint64_t b, uint64_t c);
+
+int main() {
+ unsigned a = 7, b = 3, c = 4;
+ printf("res = %u %lu\n", madd(a, b, c), maddl(a, b, c));
+ return 0;
+}