BSD 4_3_Net_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 21 Jan 1991 15:58:49 +0000 (07:58 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 21 Jan 1991 15:58:49 +0000 (07:58 -0800)
Work on file usr/src/usr.bin/gcc/gnulib/longlong/ucmpdi2.c

Synthesized-from: CSRG/cd2/net.2

usr/src/usr.bin/gcc/gnulib/longlong/ucmpdi2.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/gcc/gnulib/longlong/ucmpdi2.c b/usr/src/usr.bin/gcc/gnulib/longlong/ucmpdi2.c
new file mode 100644 (file)
index 0000000..c586e83
--- /dev/null
@@ -0,0 +1,20 @@
+#include "longlong.h"
+
+SItype
+__ucmpdi2 (a, b)
+     long long a, b;
+{
+  long_long au, bu;
+
+  au.ll = a, bu.ll = b;
+
+  if ((unsigned) au.s.high < (unsigned) bu.s.high)
+    return 0;
+  else if ((unsigned) au.s.high > (unsigned) bu.s.high)
+    return 2;
+  if ((unsigned) au.s.low < (unsigned) bu.s.low)
+    return 0;
+  else if ((unsigned) au.s.low > (unsigned) bu.s.low)
+    return 2;
+  return 1;
+}