From: Alexander Monakov Date: Thu, 28 Jun 2018 17:57:29 +0000 (+0300) Subject: optimize explicit_bzero for size X-Git-Tag: v1.1.20~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0d2b3a1e5820271c0f81d4c1fb8972a2f1141f5;p=oweals%2Fmusl.git optimize explicit_bzero for size Avoid saving/restoring the incoming argument by reusing memset return value. --- diff --git a/src/string/explicit_bzero.c b/src/string/explicit_bzero.c index 3d270040..f2e12f23 100644 --- a/src/string/explicit_bzero.c +++ b/src/string/explicit_bzero.c @@ -3,6 +3,6 @@ void explicit_bzero(void *d, size_t n) { - memset(d, 0, n); + d = memset(d, 0, n); __asm__ __volatile__ ("" : : "r"(d) : "memory"); }