From: Richard Stallman Date: Wed, 13 Jan 1993 04:30:11 +0000 (+0000) Subject: (_ffsdi2): Use the correct names for structure elements of type DIunion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa66bd06e4a00ff07013e53d34b6ea53e4738564;p=gcc.git (_ffsdi2): Use the correct names for structure elements of type DIunion. From-SVN: r3217 --- diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index efd1edb21c6..e079dd758e5 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -255,6 +255,27 @@ __ashrdi3 (u, b) } #endif +#ifdef L_ffsdi2 +DItype +__ffsdi2 (u) + DItype u; +{ + DIunion uu, w; + uu.ll = u; + w.s.high = 0; + w.s.low = ffs (uu.s.low); + if (w.s.low != 0) + return w; + w.s.low = ffs (uu.s.high); + if (w.s.low != 0) + { + w.s.low += BITS_PER_UNIT * sizeof (SItype); + return w; + } + return w; +} +#endif + #ifdef L_muldi3 DItype __muldi3 (u, v)