diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-27 17:51:35 +0200 | 
|---|---|---|
| committer | Kees Cook <keescook@chromium.org> | 2023-01-27 11:42:57 -0800 | 
| commit | a8c55407a7230798eb157ed2cf5398a6a2b123b6 (patch) | |
| tree | 169e4f50d1fe28c1d9c40aeacfc7f93c6abc0ea2 /lib/mpi/mpi-div.c | |
| parent | aa85923a954e7704bc9d3847dabeb8540aa98d13 (diff) | |
lib/string: Use strchr() in strpbrk()
Use strchr() instead of open coding it as it's done elsewhere in
the same file. Either we will have similar to what it was or possibly
better performance in case architecture implements its own strchr().
Memory wise on x86_64 bloat-o-meter shows the following
  Function           old     new   delta
  strsep             111     102      -9
  Total: Before=2763, After=2754, chg -0.33%
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230127155135.27153-1-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions
