projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
607207c
)
(_ffsdi2): Use the correct names for structure elements of type DIunion.
author
Richard Stallman
<rms@gnu.org>
Wed, 13 Jan 1993 04:30:11 +0000
(
04:30
+0000)
committer
Richard Stallman
<rms@gnu.org>
Wed, 13 Jan 1993 04:30:11 +0000
(
04:30
+0000)
From-SVN: r3217
gcc/libgcc2.c
patch
|
blob
|
history
diff --git
a/gcc/libgcc2.c
b/gcc/libgcc2.c
index efd1edb21c6fb43ce65e98efda1a88a3ec54c693..e079dd758e577e476c8321c9ffc5059511b6070b 100644
(file)
--- a/
gcc/libgcc2.c
+++ b/
gcc/libgcc2.c
@@
-255,6
+255,27
@@
__ashrdi3 (u, b)
}
#endif
\f
+#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
+
\f
#ifdef L_muldi3
DItype
__muldi3 (u, v)