www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1116] New: std.intrinsic still missing rotate

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1116

           Summary: std.intrinsic still missing rotate
           Product: D
           Version: 1.010
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: luismarques gmail.com


Five years ago, Walter said rotate intrinsic functions would be added (see
http://www.digitalmars.com/d/archives/7593.html)

Please add left and right rotate operator/functions to std.intrinsic.


-- 
Apr 09 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1116


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |enhancement




------- Comment #1 from bugzilla digitalmars.com  2007-04-10 20:51 -------
Changed to enhancement request.


-- 
Apr 10 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1116



--- Comment #2 from kai redstar.de 2009-10-11 07:14:55 PDT ---
Created an attachment (id=472)
Implementation of rol() and ror() intrinsics.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 11 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1116


kai redstar.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kai redstar.de


--- Comment #3 from kai redstar.de 2009-10-11 07:34:34 PDT ---
I also like to get the rol() and ror() intrinsics. They are extremly useful in
message digest computation and other cryptographic functions.

The attached patch is a implementation of both instrinsics. It's against
dmd1.048. Since this is my first modification of dmd, I expect that there are
still some errors in it. I tested it with severel message digest
implementations and found no problem.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 11 2009