On 2019/4/15 23:25, Peter Zijlstra wrote:
On Mon, Apr 15, 2019 at 11:20:31PM +0800, chengjian (D) wrote:
Hi, Peter
On 2019/4/15 20:46, Peter Zijlstra wrote:
I write a demo about this, which I described it as overflow.
I'm not saying there's no overflow, I'm saying there's nothing UB about
On Mon, Apr 15, 2019 at 11:20:31PM +0800, chengjian (D) wrote:
> Hi, Peter
>
>
> On 2019/4/15 20:46, Peter Zijlstra wrote:
>
> I write a demo about this, which I described it as overflow.
I'm not saying there's no overflow, I'm saying there's nothing UB about
it.
Hi, Peter
On 2019/4/15 20:46, Peter Zijlstra wrote:
I write a demo about this, which I described it as overflow.
#cat test.c
//test.c
#include
#include
#include
#include
int main(void)
{
long a = 1048576 * 9144968455305; /* shares = tg_shares * load */
unsigned long b = a;
//
On Sat, Apr 13, 2019 at 03:32:34AM +, Cheng Jian wrote:
> group_share and group_runnable are tracked as 'unsigned long',
> however some functions using them as 'long' which is ultimately
> assigned back to 'unsigned long' variables in reweight_entity.
>
> Since there is not scope on using a di
group_share and group_runnable are tracked as 'unsigned long',
however some functions using them as 'long' which is ultimately
assigned back to 'unsigned long' variables in reweight_entity.
Since there is not scope on using a different and signed type,
this change improves code consistency and avo
5 matches
Mail list logo