diff options
author | cchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-19 15:44:32 +0000 |
---|---|---|
committer | cchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-19 15:44:32 +0000 |
commit | e40ae714fad08577315fe9f39424d5b2f06c2273 (patch) | |
tree | b9f9a0c0e3f74c9092e5f3d1d5f7947aba01b2ae /gcc/libgcc2.c | |
parent | 53d36ba3507db061e50015ca9760190691acf67f (diff) | |
download | gcc-e40ae714fad08577315fe9f39424d5b2f06c2273.tar.gz |
Added the missing #endif.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 00a50e6b43e..24750837ba2 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -50,6 +50,20 @@ Boston, MA 02111-1307, USA. */ #if defined (L_divdi3) || defined (L_moddi3) static inline #endif +DWtype +__negdi2 (DWtype u) +{ + DWunion w; + DWunion uu; + + uu.ll = u; + + w.s.low = -uu.s.low; + w.s.high = -uu.s.high - ((UWtype) w.s.low > 0); + + return w.ll; +} +#endif #ifdef L_addvsi3 SItype @@ -64,6 +78,7 @@ __addvsi3 (SItype a, SItype b) return w; } +#endif #ifdef L_addvdi3 DItype @@ -126,8 +141,7 @@ __mulvsi3 (SItype a, SItype b) w = a * b; - if ((a >= 0 && b >= 0) ? w < 0 - : (a >= 0 || b >= 0) ? w > 0 : w < 0) + if (((u >= 0) == (v >= 0)) ? w < 0 : w > 0) abort (); return w; @@ -212,29 +226,14 @@ __mulvdi3 (DItype u, DItype v) w = u * v; - if ((u >= 0 && v >= 0) ? w < 0 - : (u >= 0 || v >= 0) ? w > 0 : w < 0) + if (((u >= 0) == (v >= 0)) ? w < 0 : w > 0) abort (); return w; } #endif -DWtype -__negdi2 (DWtype u) -{ - DWunion w; - DWunion uu; - - uu.ll = u; - w.s.low = -uu.s.low; - w.s.high = -uu.s.high - ((UWtype) w.s.low > 0); - - return w.ll; -} -#endif - /* Unless shift functions are defined whith full ANSI prototypes, parameter b will be promoted to int if word_type is smaller than an int. */ #ifdef L_lshrdi3 |