Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56004
b: refs/heads/master
c: df6b106
h: refs/heads/master
v: v3
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed May 11, 2007
1 parent 989ed6c commit f425d2d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 774583f8bcfbdc423e51cb8b924d8c6cea4afbac
refs/heads/master: df6b106bf01a17a157013245c2851dec4d7b5a2b
2 changes: 1 addition & 1 deletion trunk/arch/mips/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ obj-y += iomap.o
obj-$(CONFIG_PCI) += iomap-pci.o

# libgcc-style stuff needed in the kernel
lib-y += ashldi3.o ashrdi3.o lshrdi3.o
lib-y += ashldi3.o ashrdi3.o lshrdi3.o ucmpdi2.o
19 changes: 19 additions & 0 deletions trunk/arch/mips/lib/ucmpdi2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <linux/module.h>

#include "libgcc.h"

word_type __ucmpdi2 (unsigned long a, unsigned long b)
{
const DWunion au = {.ll = a};
const DWunion bu = {.ll = b};

if ((unsigned int) au.s.high < (unsigned int) bu.s.high)
return 0;
else if ((unsigned int) au.s.high > (unsigned int) 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;
}

0 comments on commit f425d2d

Please sign in to comment.