aboutsummaryrefslogtreecommitdiff
path: root/lib/ashrdi3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ashrdi3.c')
-rw-r--r--lib/ashrdi3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ashrdi3.c b/lib/ashrdi3.c
index a8125a3c7..8e27a11a7 100644
--- a/lib/ashrdi3.c
+++ b/lib/ashrdi3.c
@@ -27,16 +27,16 @@ __ashrdi3(di_int a, si_int b)
input.all = a;
if (b & bits_in_word) /* bits_in_word <= b < bits_in_dword */
{
- /* result.high = input.high < 0 ? -1 : 0 */
- result.high = input.high >> (bits_in_word - 1);
- result.low = input.high >> (b - bits_in_word);
+ /* result.s.high = input.s.high < 0 ? -1 : 0 */
+ result.s.high = input.s.high >> (bits_in_word - 1);
+ result.s.low = input.s.high >> (b - bits_in_word);
}
else /* 0 <= b < bits_in_word */
{
if (b == 0)
return a;
- result.high = input.high >> b;
- result.low = (input.high << (bits_in_word - b)) | (input.low >> b);
+ result.s.high = input.s.high >> b;
+ result.s.low = (input.s.high << (bits_in_word - b)) | (input.s.low >> b);
}
return result.all;
}