[Issue 6829] New: Unsigned rotate standard function in Phobos
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Oct 18 15:11:23 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6829
           Summary: Unsigned rotate standard function in Phobos
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-10-18 15:10:25 PDT ---
I think Phobos needs one or two functions to rotate the bits of a unsigned
integral value, because DMD is now able to optimize a specific coding pattern
to use specific CPU instructions, but it's easy to write the operation in a way
that doesn't allow the pattern to be recognized. 
A Phobos template function (with a constraint that lets it accept only the
right input types) will allow to explicitly ask for this operation to every
present and future D compiler, with no risk of mistakes from the programmer.
See also:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=146892
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list