fixed _bswapsi2 function

libgcc

	* libgcc2.c (bswapsi2): Make constants unsigned.
This commit is contained in:
Stefan Kanthak 2020-11-29 18:05:46 -07:00 committed by Jeff Law
parent 5f628fb5ce
commit a8ae23920f
1 changed files with 4 additions and 4 deletions

View File

@ -468,10 +468,10 @@ __ashrdi3 (DWtype u, shift_count_type b)
SItype
__bswapsi2 (SItype u)
{
return ((((u) & 0xff000000) >> 24)
| (((u) & 0x00ff0000) >> 8)
| (((u) & 0x0000ff00) << 8)
| (((u) & 0x000000ff) << 24));
return ((((u) & 0xff000000u) >> 24)
| (((u) & 0x00ff0000u) >> 8)
| (((u) & 0x0000ff00u) << 8)
| (((u) & 0x000000ffu) << 24));
}
#endif
#ifdef L_bswapdi2