* Re: Fw: [PATCH][Aarch64] Add vectorized mersenne twister
[not found] <20170602142929.GA40346@arm.com>
@ 2017-06-02 14:57 ` Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2017-06-02 14:57 UTC (permalink / raw)
To: James Greenhalgh; +Cc: libstdc++, nd, Michael.Collison, gcc-patches
On 02/06/17 15:29 +0100, James Greenhalgh wrote:
>Hi Michael,
>
>I think the correct list for this patch would be libstdc++@gcc.gnu.org
>(I'm sure someone there will correct me if I'm wrong).
Thanks, James, that's right. All libstdc++ patches should go to both
gcc-patches and this list.
>I'm interested in the answer to your point about polluting the global
>namespace.
It's not ideal, but I agree it's acceptable when including a
non-standard extension header. Strictly conforming programs won't use
that header, and won't get the namespace pollution.
However, if I'm reading the patch correctly it will also happen when
including <random>, because that will use the new
config/cpu/aarch64/opt/bits/opt_random.h header which includes
"arm_neon.h".
That aside, this looks like a nice addition.
The #include "arm_neon.h" directives should use <arm_neon.h> instead.
> Add optimized implementation of mersenne twister for aarch64
> * config/cpu/aarch64/opt/ext/opt_random.h: New file.
> (__arch64_recursion): new function.
> (operator==): New function.
> (simd_fast_mersenne_twister_engine): New template class.
This line of the changelog seems unnecessary, no new class template is
being added.
> * config/cpu/aarch64/opt/bits/opt_random.h: New file.
> * include/ext/random (add include for arm_neon.h):
> (simd_fast_mersenne_twister_engine): add _M_state private
> array for ARM_NEON conditional compilation.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-02 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20170602142929.GA40346@arm.com>
2017-06-02 14:57 ` Fw: [PATCH][Aarch64] Add vectorized mersenne twister Jonathan Wakely
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).