Commit 66f77154 by Michael Hayes Committed by Michael Hayes

libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.

	* libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
	* libgcc2.c (__absvsi2): Use Wtype and DWtype.
	(__absvdi2, __addvsi3, __addvdi3, __subvsi3): Likewise.
	(__subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Likewise.

From-SVN: r38314
parent f11009b7
2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
* libgcc2.c (__absvsi2): Use Wtype and DWtype.
(__absvdi2, __addvsi3, __addvdi3, __subvsi3): Likewise.
(__subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Likewise.
2000-12-16 Alexandre Oliva <aoliva@redhat.com> 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.h (INITIALIZE_TRAMPOLINE): Enclose the block * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Enclose the block
......
...@@ -66,10 +66,10 @@ __negdi2 (DWtype u) ...@@ -66,10 +66,10 @@ __negdi2 (DWtype u)
#endif #endif
#ifdef L_addvsi3 #ifdef L_addvsi3
SItype Wtype
__addvsi3 (SItype a, SItype b) __addvsi3 (Wtype a, Wtype b)
{ {
SItype w; Wtype w;
w = a + b; w = a + b;
...@@ -81,10 +81,10 @@ __addvsi3 (SItype a, SItype b) ...@@ -81,10 +81,10 @@ __addvsi3 (SItype a, SItype b)
#endif #endif
#ifdef L_addvdi3 #ifdef L_addvdi3
DItype DWtype
__addvdi3 (DItype a, DItype b) __addvdi3 (DWtype a, DWtype b)
{ {
DItype w; DWtype w;
w = a + b; w = a + b;
...@@ -96,13 +96,13 @@ __addvdi3 (DItype a, DItype b) ...@@ -96,13 +96,13 @@ __addvdi3 (DItype a, DItype b)
#endif #endif
#ifdef L_subvsi3 #ifdef L_subvsi3
SItype Wtype
__subvsi3 (SItype a, SItype b) __subvsi3 (Wtype a, Wtype b)
{ {
#ifdef L_addvsi3 #ifdef L_addvsi3
return __addvsi3 (a, (-b)); return __addvsi3 (a, (-b));
#else #else
DItype w; DWtype w;
w = a - b; w = a - b;
...@@ -115,13 +115,13 @@ __subvsi3 (SItype a, SItype b) ...@@ -115,13 +115,13 @@ __subvsi3 (SItype a, SItype b)
#endif #endif
#ifdef L_subvdi3 #ifdef L_subvdi3
DItype DWtype
__subvdi3 (DItype a, DItype b) __subvdi3 (DWtype a, DWtype b)
{ {
#ifdef L_addvdi3 #ifdef L_addvdi3
return (a, (-b)); return (a, (-b));
#else #else
DItype w; DWtype w;
w = a - b; w = a - b;
...@@ -134,10 +134,10 @@ __subvdi3 (DItype a, DItype b) ...@@ -134,10 +134,10 @@ __subvdi3 (DItype a, DItype b)
#endif #endif
#ifdef L_mulvsi3 #ifdef L_mulvsi3
SItype Wtype
__mulvsi3 (SItype a, SItype b) __mulvsi3 (Wtype a, Wtype b)
{ {
DItype w; DWtype w;
w = a * b; w = a * b;
...@@ -149,10 +149,10 @@ __mulvsi3 (SItype a, SItype b) ...@@ -149,10 +149,10 @@ __mulvsi3 (SItype a, SItype b)
#endif #endif
#ifdef L_negvsi2 #ifdef L_negvsi2
SItype Wtype
__negvsi2 (SItype a) __negvsi2 (Wtype a)
{ {
SItype w; Wtype w;
w = -a; w = -a;
...@@ -164,10 +164,10 @@ __negvsi2 (SItype a) ...@@ -164,10 +164,10 @@ __negvsi2 (SItype a)
#endif #endif
#ifdef L_negvdi2 #ifdef L_negvdi2
DItype DWtype
__negvdi2 (DItype a) __negvdi2 (DWtype a)
{ {
DItype w; DWtype w;
w = -a; w = -a;
...@@ -179,10 +179,10 @@ __negvdi2 (DItype a) ...@@ -179,10 +179,10 @@ __negvdi2 (DItype a)
#endif #endif
#ifdef L_absvsi2 #ifdef L_absvsi2
SItype Wtype
__absvsi2 (SItype a) __absvsi2 (Wtype a)
{ {
SItype w = a; Wtype w = a;
if (a < 0) if (a < 0)
#ifdef L_negvsi2 #ifdef L_negvsi2
...@@ -199,10 +199,10 @@ __absvsi2 (SItype a) ...@@ -199,10 +199,10 @@ __absvsi2 (SItype a)
#endif #endif
#ifdef L_absvdi2 #ifdef L_absvdi2
DItype DWtype
__absvdi2 (DItype a) __absvdi2 (DWtype a)
{ {
DItype w = a; DWtype w = a;
if (a < 0) if (a < 0)
#ifdef L_negvsi2 #ifdef L_negvsi2
...@@ -219,10 +219,10 @@ __absvdi2 (DItype a) ...@@ -219,10 +219,10 @@ __absvdi2 (DItype a)
#endif #endif
#ifdef L_mulvdi3 #ifdef L_mulvdi3
DItype DWtype
__mulvdi3 (DItype u, DItype v) __mulvdi3 (DWtype u, DWtype v)
{ {
DItype w; DWtype w;
w = u * v; w = u * v;
......
...@@ -256,16 +256,16 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype); ...@@ -256,16 +256,16 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
extern word_type __cmpdi2 (DWtype, DWtype); extern word_type __cmpdi2 (DWtype, DWtype);
extern word_type __ucmpdi2 (DWtype, DWtype); extern word_type __ucmpdi2 (DWtype, DWtype);
extern SItype __absvsi2 (SItype); extern Wtype __absvsi2 (Wtype);
extern DItype __absvdi2 (DItype); extern DWtype __absvdi2 (DWtype);
extern SItype __addvsi3 (SItype, SItype); extern Wtype __addvsi3 (Wtype, Wtype);
extern DItype __addvdi3 (DItype, DItype); extern DWtype __addvdi3 (DWtype, DWtype);
extern SItype __subvsi3 (SItype, SItype); extern Wtype __subvsi3 (Wtype, Wtype);
extern DItype __subvdi3 (DItype, DItype); extern DWtype __subvdi3 (DWtype, DWtype);
extern SItype __mulvsi3 (SItype, SItype); extern Wtype __mulvsi3 (Wtype, Wtype);
extern DItype __mulvdi3 (DItype, DItype); extern DWtype __mulvdi3 (DWtype, DWtype);
extern SItype __negvsi2 (SItype); extern Wtype __negvsi2 (Wtype);
extern DItype __negvdi2 (DItype); extern DWtype __negvdi2 (DWtype);
#if BITS_PER_UNIT == 8 #if BITS_PER_UNIT == 8
extern DWtype __fixdfdi (DFtype); extern DWtype __fixdfdi (DFtype);
......
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