public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Matthias Gehre <matthias.gehre@amd.com>
To: Joseph Myers <joseph@codesourcery.com>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: AW: [RFC] Adding division/modulo on arbitrary precision integers to libgcc
Date: Fri, 6 May 2022 15:57:38 +0000	[thread overview]
Message-ID: <SA1PR02MB8573828B7E9EDCE897DDBACFA7C59@SA1PR02MB8573.namprd02.prod.outlook.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2205061432140.928112@digraph.polyomino.org.uk>

> Note that each architecture also needs to specify its _BitInt ABI
> (including such things as whether the values of padding bits inside the
> size of the _BitInt type, or outside that size but within a register used
> for argument passing or return, have specified values or are arbitrary).
> HJ has a proposal for x86_64 on a branch of the ABI, but it hasn't been
> merged to master yet.
Thanks, I didn't know that this is currently in progress.
This is still slightly different, because the ABI can choose to make different
choices for _BitInt(N) depending on N, but here we need to specify an interface
that works independent of N.

> This proposed interface doesn't say anything about what aliasing is or
> isn't permitted among the four arrays pointed to.
Good catch. I would lean into saying that none of the four arrays must alias
because allowing them to alias would require most implementations to allocate
extra scratch space.
What do you think?

--
Joseph S. Myers
joseph@codesourcery.com

  reply	other threads:[~2022-05-06 15:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 14:09 Matthias Gehre
2022-05-06 14:36 ` Joseph Myers
2022-05-06 15:57   ` Matthias Gehre [this message]
2022-05-06 16:02     ` AW: " Joseph Myers
2022-05-06 14:47 ` Jakub Jelinek
2022-05-06 15:23   ` Joseph Myers
2022-05-06 15:42   ` AW: " Matthias Gehre
2022-05-06 16:39     ` Jonathan Lennox
2022-05-06 18:05 ` Segher Boessenkool

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=SA1PR02MB8573828B7E9EDCE897DDBACFA7C59@SA1PR02MB8573.namprd02.prod.outlook.com \
    --to=matthias.gehre@amd.com \
    --cc=gcc@gcc.gnu.org \
    --cc=joseph@codesourcery.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).