aboutsummaryrefslogtreecommitdiff
path: root/benchtests/inet_ntop_ipv4-source.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2025-06-11 18:35:44 -0700
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-06-17 09:57:40 -0300
commitc66801f36135a7b031ca37e25a35e98255b20def (patch)
treed960299ccfe7b95769df607ce1e7e711eb882192 /benchtests/inet_ntop_ipv4-source.c
parentbe413adedfca146a6fb8cabe3df1244a70f106f3 (diff)
downloadglibc-c66801f36135a7b031ca37e25a35e98255b20def.zip
glibc-c66801f36135a7b031ca37e25a35e98255b20def.tar.gz
glibc-c66801f36135a7b031ca37e25a35e98255b20def.tar.bz2
include/array_length.h: add array_foreach[_const] macros
Add simple-to-use iterator macros for arrays. They are used instead of explicit for statements, like: /* Test all common speeds */ array_foreach_const (ts, test_speeds) test (fd, *ts); In this case, ts will be a const pointer to each of the elements of test_speeds in turn. Named array_foreach*() to allow for other kinds of equivalent iterator macros in the future. Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'benchtests/inet_ntop_ipv4-source.c')
0 files changed, 0 insertions, 0 deletions