www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9860] New: Shifting a vector by a scalar value should be allowed

http://d.puremagic.com/issues/show_bug.cgi?id=9860

           Summary: Shifting a vector by a scalar value should be allowed
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kai redstar.de


--- Comment #0 from kai redstar.de 2013-04-02 09:09:30 PDT ---
SSE2 has the PSLLW, PSRLW and PSRAW instruction family. Thus the shift
operators <<, >> and >>> can be implemented for vectors in terms of these
instructions.

This is an useful extension because cryptographic algorithm require a shift
operation very often (e.g. see the vectorized version of SHA1).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 02 2013