Files
gnulib/modules/reallocarray
Paul Eggert 354b9691ac 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.
2021-04-25 23:12:25 -07:00

34 lines
621 B
Plaintext

Description:
reallocarray function that is glibc compatible.
Files:
lib/reallocarray.c
m4/malloc.m4
m4/reallocarray.m4
Depends-on:
extensions
intprops [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
realloc-gnu [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
stdlib
configure.ac:
gl_FUNC_REALLOCARRAY
if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
AC_LIBOBJ([reallocarray])
gl_PREREQ_REALLOCARRAY
fi
gl_MODULE_INDICATOR([reallocarray])
gl_STDLIB_MODULE_INDICATOR([reallocarray])
Makefile.am:
Include:
<stdlib.h>
License:
LGPLv2+
Maintainer:
all