[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOG64qOtLzZQvB1Lsa6N8HvOHRar8fa7uwhOCe=MP4y5Ow-nzw@mail.gmail.com>
Date: Wed, 30 Aug 2023 23:11:15 +0700
From: Alviro Iskandar Setiawan <alviro.iskandar@...weeb.org>
To: Ammar Faizi <ammarfaizi2@...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 11:08 PM Ammar Faizi wrote:
> On Wed, Aug 30, 2023 at 05:51:52PM +0200, Willy Tarreau wrote:
> > xchg %eax, %esi 1
> > push %rdx 1
> > pop %rcx 1
> > push %rdi 1
> > rep movsb 2 [sic]
> > pop %rax 1
> > ret 1
> > ------------- Total: 8 bytes :-)
That's beautiful!
-- Viro
Powered by blists - more mailing lists