public inbox for [email protected]
 help / color / mirror / Atom feed
From: David Laight <[email protected]>
To: "'Ammar Faizi'" <[email protected]>,
	"Willy Tarreau" <[email protected]>,
	"Thomas Weißschuh" <[email protected]>
Cc: Nicholas Rosenberg <[email protected]>,
	Alviro Iskandar Setiawan <[email protected]>,
	Michael William Jonathan <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>,
	Linux Kernel Mailing List <[email protected]>
Subject: RE: [RFC PATCH v3 0/4] nolibc x86-64 string functions
Date: Sun, 3 Sep 2023 20:38:22 +0000	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

From: Ammar Faizi
> Sent: 02 September 2023 14:35
> 
> This is an RFC patchset v3 for nolibc x86-64 string functions.
> 
> There are 4 patches in this series:
> 
> ## Patch 1-2: Use `rep movsb`, `rep stosb` for:
>     - memcpy() and memmove()
>     - memset()
> respectively. They can simplify the generated ASM code.

It is worth pointing out that while the code size for 'rep xxxb'
is smaller, the performance is terrible.
The only time it is ever good is for the optimised forwards
copies on cpu that support it.

reverse, stos and scas are always horrid.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)


  parent reply	other threads:[~2023-09-03 20:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-02 13:35 [RFC PATCH v3 0/4] nolibc x86-64 string functions Ammar Faizi
2023-09-02 13:35 ` [RFC PATCH v3 1/4] tools/nolibc: x86-64: Use `rep movsb` for `memcpy()` and `memmove()` Ammar Faizi
2023-09-02 13:35 ` [RFC PATCH v3 2/4] tools/nolibc: x86-64: Use `rep stosb` for `memset()` Ammar Faizi
2023-09-02 19:28   ` Alviro Iskandar Setiawan
2023-09-02 19:34     ` Ammar Faizi
2023-09-02 19:38       ` Alviro Iskandar Setiawan
2023-09-02 19:39         ` Ammar Faizi
2023-09-03  8:17       ` Willy Tarreau
2023-09-03  8:34         ` Ammar Nofan Faizi
2023-09-03  8:39         ` Ammar Faizi
2023-09-03  9:55           ` Willy Tarreau
2023-09-02 13:35 ` [RFC PATCH v3 3/4] tools/nolibc: string: Remove the `_nolibc_memcpy_down()` function Ammar Faizi
2023-09-02 19:24   ` Alviro Iskandar Setiawan
2023-09-02 13:35 ` [RFC PATCH v3 4/4] tools/nolibc: string: Remove the `_nolibc_memcpy_up()` function Ammar Faizi
2023-09-02 19:26   ` Alviro Iskandar Setiawan
2023-09-03 20:38 ` David Laight [this message]
2023-09-03 21:19   ` [RFC PATCH v3 0/4] nolibc x86-64 string functions Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox