summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/lshrdi3.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-08-09 18:41:02 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-08-09 18:41:02 +0000
commitccf48131d045e9baf92d215a0b6ca79cafee89b4 (patch)
treef3bff39c21726a511b32f2dff5d6db9390b7db44 /compiler-rt/lib/lshrdi3.c
parentf48123b4136d80b1a00f3bd5bd186d40cac11ead (diff)
downloadbcm5719-llvm-ccf48131d045e9baf92d215a0b6ca79cafee89b4.tar.gz
bcm5719-llvm-ccf48131d045e9baf92d215a0b6ca79cafee89b4.zip
Refactor to remove un-named struct gnu extension usage. Now ISO C89 and C99 compliant. Comment trailing endifs
llvm-svn: 78537
Diffstat (limited to 'compiler-rt/lib/lshrdi3.c')
-rw-r--r--compiler-rt/lib/lshrdi3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/lshrdi3.c b/compiler-rt/lib/lshrdi3.c
index b3b31bf005e..57484ee750a 100644
--- a/compiler-rt/lib/lshrdi3.c
+++ b/compiler-rt/lib/lshrdi3.c
@@ -27,15 +27,15 @@ __lshrdi3(di_int a, si_int b)
input.all = a;
if (b & bits_in_word) /* bits_in_word <= b < bits_in_dword */
{
- result.high = 0;
- result.low = input.high >> (b - bits_in_word);
+ result.s.high = 0;
+ 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;
}
OpenPOWER on IntegriCloud