0001
0002 #include <linux/module.h>
0003 #include "libgcc.h"
0004
0005 word_type __ucmpdi2(unsigned long long a, unsigned long long b)
0006 {
0007 const DWunion au = {.ll = a};
0008 const DWunion bu = {.ll = b};
0009
0010 if ((unsigned int) au.s.high < (unsigned int) bu.s.high)
0011 return 0;
0012 else if ((unsigned int) au.s.high > (unsigned int) bu.s.high)
0013 return 2;
0014 if ((unsigned int) au.s.low < (unsigned int) bu.s.low)
0015 return 0;
0016 else if ((unsigned int) au.s.low > (unsigned int) bu.s.low)
0017 return 2;
0018 return 1;
0019 }
0020 EXPORT_SYMBOL(__ucmpdi2);