15 Jun
2023
15 Jun
'23
6:08 p.m.
On Thu, Jun 15, 2023 at 6:26 PM Herve Codina herve.codina@bootlin.com wrote:
Introduce min_array() (resp max_array()) in order to get the minimal (resp maximum) of values present in an array.
Only in the case if you need to send a new version (otherwise a follow up will be okay)...
...
- The first typeof(&(array)[0]) is needed in order to support arrays of both
- 'int *buff' and 'int buf[N]' types.
int buff[N] ?
- The array can be an array of const items.
- typeof() keeps the const qualifier. Use __unconst_typeof() in order to
+ _integer
- discard the const qualifier for the __element variable.
--
With Best Regards,
Andy Shevchenko