aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps/cruft/can_i_sub.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-04 11:11:06 -0700
committerJosh Blum <josh@joshknows.com>2010-08-04 11:11:06 -0700
commitfe622fb28654e6a578395d7b688e7c1958d373be (patch)
treec4cad6eb4c77895ddbc7bf8b297f4c115e6c52f7 /firmware/microblaze/apps/cruft/can_i_sub.c
parentee32fa2290f8b6abe83f1b8b33aff922f9d1e24c (diff)
parent4240d5a2a1b705fe8ed5c3a1d1deef24be00d444 (diff)
downloaduhd-fe622fb28654e6a578395d7b688e7c1958d373be.tar.gz
uhd-fe622fb28654e6a578395d7b688e7c1958d373be.tar.bz2
uhd-fe622fb28654e6a578395d7b688e7c1958d373be.zip
Merge branch 'fw_reorg'
Diffstat (limited to 'firmware/microblaze/apps/cruft/can_i_sub.c')
-rw-r--r--firmware/microblaze/apps/cruft/can_i_sub.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/firmware/microblaze/apps/cruft/can_i_sub.c b/firmware/microblaze/apps/cruft/can_i_sub.c
new file mode 100644
index 000000000..ed49791f0
--- /dev/null
+++ b/firmware/microblaze/apps/cruft/can_i_sub.c
@@ -0,0 +1,25 @@
+#include <u2_init.h>
+#include <nonstdio.h>
+
+//typedef long long int64_t;
+
+
+int64_t sub(int64_t a, int64_t b);
+void print(int64_t d);
+
+int main(void)
+{
+ u2_init();
+
+ int64_t d = sub(462550990848000LL, 462028800000000LL);
+ print_uint64(d);
+ newline();
+ return 0;
+}
+
+int64_t sub(int64_t a, int64_t b)
+{
+ return a - b;
+}
+
+