Refactor `stgReallocForGMP` to use `memcpy`
GCC is able to generate better code when using `memcpy` instead of
manually copying bytes in a loop. Otoh, `stgAllocForGMP` is typically
called for enlarging initial single-limb structures (see also #8647 for
more information) and so this minor optimization won't be very visible
in measurements.
Signed-off-by:
Herbert Valerio Riedel <hvr@gnu.org>
Please register or sign in to comment