mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Automatically add spaces to binary operators (<<)
command: sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
This commit is contained in:
parent
d905ef53b1
commit
ef7be4b60d
11 changed files with 132 additions and 132 deletions
|
@ -2327,7 +2327,7 @@ private template TimSortImpl(alias pred, R)
|
|||
size_t minRunLength()(size_t n)
|
||||
{
|
||||
immutable shift = bsr(n)-5;
|
||||
auto result = (n>>shift) + !!(n & ~((1<<shift)-1));
|
||||
auto result = (n>>shift) + !!(n & ~((1 << shift)-1));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue