diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-09 18:41:02 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-09 18:41:02 +0000 |
commit | 8bf1e094893cb24796137b47ee0d46d18d299996 (patch) | |
tree | 57669837db32d106ba744be339a354b8055fcfe4 /lib/lshrti3.c | |
parent | 33c134702e274fdbcb1672771a137efb82b498b2 (diff) | |
download | compiler-rt-8bf1e094893cb24796137b47ee0d46d18d299996.tar.gz |
Refactor to remove un-named struct gnu extension usage. Now ISO C89 and C99 compliant. Comment trailing endifs
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lshrti3.c')
-rw-r--r-- | lib/lshrti3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/lshrti3.c b/lib/lshrti3.c index a2846875d..3272c9ca8 100644 --- a/lib/lshrti3.c +++ b/lib/lshrti3.c @@ -29,17 +29,17 @@ __lshrti3(ti_int a, si_int b) input.all = a; if (b & bits_in_dword) /* bits_in_dword <= b < bits_in_tword */ { - result.high = 0; - result.low = input.high >> (b - bits_in_dword); + result.s.high = 0; + result.s.low = input.s.high >> (b - bits_in_dword); } else /* 0 <= b < bits_in_dword */ { if (b == 0) return a; - result.high = input.high >> b; - result.low = (input.high << (bits_in_dword - b)) | (input.low >> b); + result.s.high = input.s.high >> b; + result.s.low = (input.s.high << (bits_in_dword - b)) | (input.s.low >> b); } return result.all; } -#endif +#endif /* __x86_64 */ |