Commit 9bd23d2c by Richard Stallman

(__gcc_bcmp): New function, in cond on L__gcc_bcmp.

From-SVN: r2110
parent bb3facc5
...@@ -975,7 +975,30 @@ __fixunssfsi (SFtype a) ...@@ -975,7 +975,30 @@ __fixunssfsi (SFtype a)
#undef unsigned #undef unsigned
#undef float #undef float
#undef double #undef double
#ifdef L__gcc_bcmp
/* Like bcmp except the sign is meaningful.
Reult is negative if S1 is less than S2,
positive if S1 is greater, 0 if S1 and S2 are equal. */
int
__gcc_bcmp (s1, s2, size)
char *s1, *s2;
size_t size;
{
while (size > 0)
{
char c1 = *s1++, c2 = *s2++;
if (c1 != c2)
return c1 - c2;
size--;
}
return 0;
}
#endif
#ifdef L_varargs #ifdef L_varargs
#ifdef __i860__ #ifdef __i860__
#if defined(__svr4__) || defined(__alliant__) #if defined(__svr4__) || defined(__alliant__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment