clang-format
This commit is contained in:
@@ -40,21 +40,18 @@
|
||||
/*
|
||||
* Shift an (unsigned) long long value right (logical shift right).
|
||||
*/
|
||||
long long
|
||||
__lshrdi3(long long a, unsigned int shift)
|
||||
{
|
||||
union uu aa;
|
||||
long long __lshrdi3(long long a, unsigned int shift) {
|
||||
union uu aa;
|
||||
|
||||
if (shift == 0)
|
||||
return(a);
|
||||
aa.ll = a;
|
||||
if (shift >= INT_BITS) {
|
||||
aa.ui[L] = aa.ui[H] >> (shift - INT_BITS);
|
||||
aa.ui[H] = 0;
|
||||
} else {
|
||||
aa.ui[L] = (aa.ui[L] >> shift) |
|
||||
(aa.ui[H] << (INT_BITS - shift));
|
||||
aa.ui[H] >>= shift;
|
||||
}
|
||||
return (aa.ll);
|
||||
if (shift == 0)
|
||||
return (a);
|
||||
aa.ll = a;
|
||||
if (shift >= INT_BITS) {
|
||||
aa.ui[L] = aa.ui[H] >> (shift - INT_BITS);
|
||||
aa.ui[H] = 0;
|
||||
} else {
|
||||
aa.ui[L] = (aa.ui[L] >> shift) | (aa.ui[H] << (INT_BITS - shift));
|
||||
aa.ui[H] >>= shift;
|
||||
}
|
||||
return (aa.ll);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user