]> sourceware.org Git - glibc.git/commit
Bench: Improve benchtests for memchr, strchr, strnlen, strrchr
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 19 Oct 2022 00:44:09 +0000 (17:44 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 20 Oct 2022 00:31:03 +0000 (17:31 -0700)
commit643a2d01399188192e0da234581034f77c892054
tree64d0e00ac4f7a9865a19c416eccdc6639bd371c1
parentb412213eee0afa3b51dfe92b736dfc7c981309f5
Bench: Improve benchtests for memchr, strchr, strnlen, strrchr

1. Add more complete coverage in the medium size range.
2. In strnlen remove the `1 << i` which was UB (`i` could go beyond
   32/64)
benchtests/bench-memchr.c
benchtests/bench-rawmemchr.c
benchtests/bench-strchr.c
benchtests/bench-strnlen.c
benchtests/bench-strrchr.c
This page took 0.047577 seconds and 5 git commands to generate.