This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arch-specific template code


On Sat, Sep 8, 2012 at 6:12 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
> PR 54400: horizontal add
> PR 54408: sqrt
> PR 54422: unaligned load/store
> PR 54427: operator< and others in C++

You'll also need various shifting:operations

  - based on sub-words, measured in bits
  - a whole vector, byte-wise.

Those are essential for the code like the SFMT implementation.  Maybe
the former you have in PR 54427 but the second is something that
doesn't exist in C or C++.  You can do that via a byte-wise shuffle.
But in that case the compiler has to recognize the shuffle patterns
like { 6,5,4,3,2,1,0,15,14,13,12,11,10,9,8,7} and then don't use
shuffle but instead use the rotate instruction.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]