From aa66bd06e4a00ff07013e53d34b6ea53e4738564 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 13 Jan 1993 04:30:11 +0000 Subject: [PATCH] (_ffsdi2): Use the correct names for structure elements of type DIunion. From-SVN: r3217 --- gcc/libgcc2.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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) -- 2.30.2