]> Savannah Git Hosting - gnulib.git/commit
reallocarray: a bit more tuning
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Apr 2021 06:11:15 +0000 (23:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Apr 2021 06:12:25 +0000 (23:12 -0700)
commit354b9691accd00a531358b652689ce7f580fbe54
treed10f9e2bedd2150a7138d9af901e9edf32aac0d6
parent974ddbe54c37dd1f8f0f0f11f6f967d6fecd864d
reallocarray: a bit more tuning

* lib/reallocarray.c: Include intprops.h.
(reallocarray): Use INT_MULTIPLY_WRAPV instead of
xalloc_oversized, as it now suffices and is likely a bit more
efficient (five fewer machine insns on Ubuntu 20.10 x86-64).
* modules/reallocarray (Depends-on): Depend on intprops, not
xalloc-oversized.  Use conditional dependencies to avoid building
realloc-gnu when not needed.
ChangeLog
lib/reallocarray.c
modules/reallocarray