[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zcz5GmAtPbdInWJU@smile.fi.intel.com>
Date: Wed, 14 Feb 2024 19:32:10 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: Michal Wajdeczko <michal.wajdeczko@...el.com>,
linux-kernel@...r.kernel.org, Rodrigo Vivi <rodrigo.vivi@...el.com>,
Jani Nikula <jani.nikula@...el.com>
Subject: Re: [RFC] include/linux/make_type.h: Helpers for making u16/u32/u64
values
On Wed, Feb 14, 2024 at 08:20:55PM +0300, Alexey Dobriyan wrote:
..
> Secondly,
>
> #define make_u64(hi__, lo__) ((u64)(hi__) << 32 | (u32)(lo__))
>
> doesn't truncate hi, why?
Because it's not needed (the whole point AFAIU is to override promotion
to a _signed_ type (int) and here it makes no difference)?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists