mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: tugouxp <13824125580@163.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Why the musl libc did not support neon simd acceleartor officially on mem* operations?
Date: Sat, 28 Aug 2021 15:53:31 -0400	[thread overview]
Message-ID: <20210828195330.GZ13220@brightrain.aerifal.cx> (raw)
In-Reply-To: <4e37b6c4.19be.17b8bc750df.Coremail.13824125580@163.com>

On Sat, Aug 28, 2021 at 04:01:40PM +0800, tugouxp wrote:
> HI guys:
>   I found that the current implmention of musl arm port memcpy.S and
> other mem*.S operations did not use arm neon instructions, this
> seems differenct with other counterparts like newlibc, glibc and
> bonic libc, which all impl. the neon version of mem* operations. so
> could you tell me why? is there and concern about on this in musl?
> if i want to imple my self imple. how to do this, is there any
> matual pathches to use?

Generally we don't have any significant asm implementations that
depend on non-baseline extensions to the ISA. The same is true for x86
where no sse/avx is used.

The asm files we have for arm are already way too large and complex,
with all the high level flow gratuitously written in asm. Ideally at
some point we will refactor that to have all the high level logic in C
and just core block copy primitives provided by the archs. Whether
this would cleanly admit using methods only known to be available at
runtime I'm not sure.

Do you know what performance difference you're missing out on by not
having neon? At what block sizes does it matter?

Rich

  parent reply	other threads:[~2021-08-28 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-28  8:01 tugouxp
2021-08-28  9:48 ` Markus Wichmann
2021-08-28 14:29   ` [musl] " tugouxp
2021-08-28 19:53 ` Rich Felker [this message]
2021-08-28 20:27   ` Jeffrey Walton
2021-08-28 20:34     ` Rich Felker
2021-09-04 13:56       ` Ismael Luceno

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 \
    --in-reply-to=20210828195330.GZ13220@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=13824125580@163.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).