home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
LIBSRC.ZOO
/
libsrc
/
longlong
/
cmpdi2.c
< prev
next >
Wrap
Text File
|
1992-03-14
|
384b
|
21 lines
#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;
}