Work on file usr/src/usr.bin/gcc/gnulib/longlong/cmpdi2.c
Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1
--- /dev/null
+#include "longlong.h"
+
+SItype
+__cmpdi2 (a, b)
+ long long a, b;
+{
+ long_long au, bu;
+
+ au.ll = a, bu.ll = b;
+
+ if (au.s.high < bu.s.high)
+ return 0;
+ else if (au.s.high > 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;
+}