This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] How to add vector math functions to Glibc
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andrew Senkevich <andrew dot n dot senkevich at gmail dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 22 Sep 2014 12:36:49 +0000
- Subject: Re: [RFC] How to add vector math functions to Glibc
- Authentication-results: sourceware.org; auth=none
- References: <CAMXFM3tjquzniXP1weqxSVFJyhXqsf2PHuyrrrmqp7K0ZzORqA at mail dot gmail dot com> <CAMXFM3sGMNX1DEPAMt7qUR4UREF_xUAQjCG1OjBiZH2aoOFiPA at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1409181551370 dot 31607 at digraph dot polyomino dot org dot uk> <CAMXFM3sKW7gGZGkQ3qfTpYB0biEhL2oX=kUYuw+DVh1v5TjqjA at mail dot gmail dot com>
On Mon, 22 Sep 2014, Andrew Senkevich wrote:
> Is it OK to have following scheme:
Yes, that's the sort of thing I'd expect. However:
> diff --git a/sysdeps/x86_64/bits/math-vector.h
The installed header files for x86_64 (-m64), x86_64 (x32) and i386 are
meant to be the same, to support using the same compiler and headers with
any of -m64, -mx32 and -m32. Thus, this header needs to go in
sysdeps/x86/fpu, and to contain __x86_64__ preprocessor conditionals.
--
Joseph S. Myers
joseph@codesourcery.com