Re: [PATCH v3 2/2] iio: frequency: ad9832: simplify bitwise math

Joshua Crofts
2026-04-14T10:45:34Z

On Tue, 14 Apr 2026 at 11:57, Andy Shevchenko
<andriy.shevchenko@intel.com> wrote:
> It's up to you. (u64) casting here is not bad per se. And it's more robust
> against changes in the second operand the type of which is hidden currently.
> (Reading again what I just wrote, it seems I objecting my own suggestion!)

If I'm not mistaken, the compiler would always do a type promotion of the
"smaller" operand (in this case fout). By casting at this point we're just doing
the work for it, so I guess it doesn't matter.

--
Kind regards

CJD