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