From: Stefan Kanthak Date: Mon, 30 Nov 2020 01:05:46 +0000 (-0700) Subject: fixed _bswapsi2 function X-Git-Tag: upstream/12.2.0~11425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8ae23920f9c954ed66bd92ddbdbb1b8486b950f;p=platform%2Fupstream%2Fgcc.git fixed _bswapsi2 function libgcc * libgcc2.c (bswapsi2): Make constants unsigned. --- diff --git a/libgcc/libgcc2.c b/libgcc/libgcc2.c index 1921d80..61de3b4 100644 --- a/libgcc/libgcc2.c +++ b/libgcc/libgcc2.c @@ -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