Loading arch/microblaze/lib/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ lib-y += uaccess_old.o lib-y += ashldi3.o lib-y += ashrdi3.o lib-y += cmpdi2.o lib-y += divsi3.o lib-y += lshrdi3.o lib-y += modsi3.o Loading arch/microblaze/lib/cmpdi2.c 0 → 100644 +26 −0 Original line number Diff line number Diff line #include <linux/module.h> #include "libgcc.h" word_type __cmpdi2(long long a, long long b) { const DWunion au = { .ll = a }; const DWunion bu = { .ll = b }; if (au.s.high < bu.s.high) return 0; else if (au.s.high > bu.s.high) return 2; if ((unsigned int) au.s.low < (unsigned int) bu.s.low) return 0; else if ((unsigned int) au.s.low > (unsigned int) bu.s.low) return 2; return 1; } EXPORT_SYMBOL(__cmpdi2); Loading
arch/microblaze/lib/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ lib-y += uaccess_old.o lib-y += ashldi3.o lib-y += ashrdi3.o lib-y += cmpdi2.o lib-y += divsi3.o lib-y += lshrdi3.o lib-y += modsi3.o Loading
arch/microblaze/lib/cmpdi2.c 0 → 100644 +26 −0 Original line number Diff line number Diff line #include <linux/module.h> #include "libgcc.h" word_type __cmpdi2(long long a, long long b) { const DWunion au = { .ll = a }; const DWunion bu = { .ll = b }; if (au.s.high < bu.s.high) return 0; else if (au.s.high > bu.s.high) return 2; if ((unsigned int) au.s.low < (unsigned int) bu.s.low) return 0; else if ((unsigned int) au.s.low > (unsigned int) bu.s.low) return 2; return 1; } EXPORT_SYMBOL(__cmpdi2);