![](https://secure.gravatar.com/avatar/a3dd0965b05b71c3dff6eb289eb43e59.jpg?s=120&d=mm&r=g)
Dne 24. 07. 24 v 3:59 Kuninori Morimoto napsal(a):
Hi Iwai-san, Mark Cc Sakamoto-san, Amadeusz, Pierre-Louis
It seems we can use _Generic() more simply, v2 RFC is using it. I'm not 100% sure but unfortunately we can't use bit-field with _Generic() in gcc (clang seems possible to handle it ?). pci/ac97 is the only user of bit-field direction.
To avoid posting patch-bomb, I will post main patch and some sample patches as RFC. Please review it.
Link: https://lore.kernel.org/r/87zfqel1g7.wl-kuninori.morimoto.gx@renesas.com
Thank you for your help !!
Hi,
my opinion is that this massive patch-set is just an overdesign. Even using the _Generic macro does not bring anything new and the code readability is not improved. If we add such macros for all simple cases (condition expressions), the code will be unreadable at some point.
Jaroslav