mtd: rawnand: tegra: Simplify maximum determination in tegra_nand_setup_timing()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Mar 3 03:03:55 PST 2025
On 03/03/2025 at 11:55:49 +01, Markus Elfring <Markus.Elfring at web.de> wrote:
>> I am sorry, I do not see what gets simplified. max(max(a,b),max(c,d))
>> looks simpler than max3(a,b,max(c,d)).
>
> You would eventually like to express that a maximum should be determined
> from three (or even four?) values.
If there was a max4(), why not, but in this case I don't see the point.
> https://elixir.bootlin.com/linux/v6.14-rc4/source/include/linux/minmax.h#L147
>
>
>> Does it bring something in terms
>> of optimization?
> Corresponding effects depend on various factors, don't they?
Ok, so I'll assume the answer to my question is "no".
Thanks,
Miquèl
More information about the linux-mtd
mailing list