This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PPC64 libmvec sincos/sincosf ABI
- From: Florian Weimer <fweimer at redhat dot com>
- To: GT <tnggil at protonmail dot com>
- Cc: Bill Schmidt <wschmidt at linux dot ibm dot com>, "libc-alpha\@sourceware.org" <libc-alpha at sourceware dot org>
- Date: Thu, 08 Aug 2019 17:56:34 +0200
- Subject: Re: PPC64 libmvec sincos/sincosf ABI
- References: <m-AhGqPevr7I_c5jF1posRA_bT8Gb8ybwyCgHJP5MbdPs1O6Yv60386A3hgYDZtEaij4iuLbqulf-JSlXj8v6mci_MNQDnHMd1mKpd1I0nI=@protonmail.com> <87blx0isku.fsf@linux.ibm.com> <423c181a-129f-662b-96cd-0940e6bda939@linux.ibm.com> <o17n2W1DqXwe_xbYdJAHVu4M5Y5KjVg-HUwQeaB1HLGk7FUCBKIEvYYO-50725OnNY2gDtfpkfHxkdd3tJMWDHAjddPcFGDNPefYX3fN-qE=@protonmail.com>
* GT:
> ./tst_sincos.c: In function ‘main’:
> ./tst_sincos.c:15:5: warning: implicit declaration of function ‘sincos’ [-Wimplicit-function-declaration]
> sincos (a[i], &b[i], &c[i]);
> ^~~~~~
> ./tst_sincos.c:15:5: warning: incompatible implicit declaration of built-in function ‘sincos’
> ./tst_sincos.c:15:5: note: include ‘<math.h>’ or provide a declaration of ‘sincos’
> ./tst_sincos.c:2:1:
> +#include <math.h>
For sincos, you currently need to build with _GNU_SOURCE. (I don't get
a vector call for this, though.)
We should probably make sincos etc. available by default because these
functions are widely available elsewhere.
Thanks,
Florian