[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZO9Oeq0bHU+NU29D@biznet-home.integral.gnuweeb.org>
Date: Wed, 30 Aug 2023 21:13:14 +0700
From: Ammar Faizi <ammarfaizi2@...weeb.org>
To: Alviro Iskandar Setiawan <alviro.iskandar@...weeb.org>
Cc: Willy Tarreau <w@....eu>,
Thomas Weißschuh <linux@...ssschuh.net>,
Nicholas Rosenberg <inori@...x.org>,
Michael William Jonathan <moe@...weeb.org>,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH v1 2/5] tools/nolibc: x86-64: Use `rep stosb` for
`memset()`
On Wed, Aug 30, 2023 at 09:08:05PM +0700, Alviro Iskandar Setiawan wrote:
> The first instruction could be:
>
> movl %esi, %eax
>
> That's smaller. Also, the second argument of memset() is an int
> anyway, so there is no need to have a full 64-bit copy of %rsi in
> %rax.
Agree, noted.
--
Ammar Faizi
Powered by blists - more mailing lists