Bug 1116 – std.intrinsic still missing rotate

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P3
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-09T10:40:00Z
Last change time
2014-02-16T15:21:32Z
Assigned to
bugzilla
Creator
luis

Attachments

IDFilenameSummaryContent-TypeSize
472dmd.code.diffImplementation of rol() and ror() intrinsics.text/plain3737

Comments

Comment #0 by luis — 2007-04-09T10:40:25Z
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.
Comment #1 by bugzilla — 2007-04-10T20:51:51Z
Changed to enhancement request.
Comment #2 by kai — 2009-10-11T07:14:55Z
Created attachment 472 Implementation of rol() and ror() intrinsics.
Comment #3 by kai — 2009-10-11T07:34:34Z
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.
Comment #4 by hsteoh — 2013-08-13T09:42:49Z
Related issue #6829.
Comment #5 by code — 2013-11-01T19:06:39Z
*** This issue has been marked as a duplicate of issue 6829 ***