unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Bill Schmidt <wschmidt@linux.ibm.com>
To: Tulio Magno Quites Machado Filho <tuliom@ascii.art.br>,
	GT <tnggil@protonmail.com>,
	"libc-alpha\\@sourceware.org" <libc-alpha@sourceware.org>
Cc: Joseph Myers <joseph@codesourcery.com>, nd@arm.com
Subject: Re: PPC64 libmvec sincos/sincosf ABI
Date: Thu, 8 Aug 2019 08:33:46 -0500	[thread overview]
Message-ID: <423c181a-129f-662b-96cd-0940e6bda939@linux.ibm.com> (raw)
In-Reply-To: <87blx0isku.fsf@linux.ibm.com>

On 8/7/19 4:17 PM, Tulio Magno Quites Machado Filho wrote:
> GT <tnggil@protonmail.com> writes:
>
>> I believe PPC64 needs to implement functions analogous to x86_64 _ZGVbN4vvv_sincosf, _ZGVbN4vl4l4_sincosf, _ZGVbN2vvv_sincos, _ZGVbN2vl8l8_sincos.
> I can't follow you here.
> Why do you think both implementations for each type are necessary?
>
> AFAIU, both _ZGVbN4vvv_sincosf and _ZGVbN2vvv_sincos should not exist.
> Or are you implying they're required somewhere else?
>
>> The function signatures of scalar sincosf and sincos are:
>>
>> sincosf (float, float *, float *)
>> sincos (double, double *, double *)
>>
>> How do I determine the vector function signatures in C, of the 4 vector functions referenced at the top of this message?
> For _ZGVbN4vl4l4_sincosf and _ZGVbN2vl8l8_sincos I'd write them as:
>
> void sincosf (vector float, vector float *, vector float *);
> void sincos (vector double, vector double *, vector double *);
>
I'm trying to work my way into understanding the veclibabi support in
GCC, so please bear with me.

Why are we interested in sincos at all?  There is no handling of sincos
in the i386 SVML or ACML interfaces for libmvec.  They handle only sin
and cos separately, as does libmassv for Power.  I am coming late to the
discussion, but I don't understand how this fits into the libmvec ABI
requirements.

Because sincos has an oddball interface, it doesn't fit in well with the
-mveclibabi=* machinery, so far as I can tell.

Thanks,
Bill

  reply	other threads:[~2019-08-08 13:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-01 13:01 PPC64 libmvec sincos/sincosf ABI GT
2019-08-01 17:04 ` Joseph Myers
2019-08-07 21:17 ` Tulio Magno Quites Machado Filho
2019-08-08 13:33   ` Bill Schmidt [this message]
2019-08-08 15:48     ` GT
2019-08-08 15:56       ` Florian Weimer
2019-08-08 16:56         ` GT
2019-08-08 16:11       ` Bill Schmidt
2019-08-08 17:42         ` GT
2019-08-08 17:51           ` Bill Schmidt
  -- strict thread matches above, loose matches on Subject: below --
2019-08-06 17:42 Wilco Dijkstra
2019-08-06 20:31 ` Joseph Myers
2019-08-08 15:25 ` Bill Schmidt
2019-08-08 18:48   ` Bill Schmidt
2019-09-20 19:25   ` GT
2019-09-20 20:25     ` Bill Schmidt
2019-09-23 18:02       ` GT
2019-09-24 16:43         ` Bill Schmidt

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

  List information: https://www.gnu.org/software/libc/involved.html

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

  git send-email \
    --in-reply-to=423c181a-129f-662b-96cd-0940e6bda939@linux.ibm.com \
    --to=wschmidt@linux.ibm.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=nd@arm.com \
    --cc=tnggil@protonmail.com \
    --cc=tuliom@ascii.art.br \
    /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).