[Issue 5728] "rol" in core.bitop

2011-08-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5728 --- Comment #6 from bearophile_h...@eml.cc 2011-08-09 18:08:29 PDT --- (In reply to comment #5) > The mistake is this is not a correct rotate function. (x >> shift) is a signed > right shift. Rewrite as (x >>> shift). Thank you, I'm wrong all

[Issue 5728] "rol" in core.bitop

2011-08-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5728 --- Comment #5 from Walter Bright 2011-08-09 17:34:51 PDT --- (In reply to comment #4) > As reference, DMD 2.055head compiles this D2 function: > T rot(T)(T x, int shift) { > return (x >> shift) | (x << (T.sizeof * 8 - shift)); > } The mi

[Issue 5728] "rol" in core.bitop

2011-08-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5728 --- Comment #4 from bearophile_h...@eml.cc 2011-08-07 11:23:10 PDT --- As reference, DMD 2.055head compiles this D2 function: T rot(T)(T x, int shift) { return (x >> shift) | (x << (T.sizeof * 8 - shift)); } void main() { int a = 0b_

[Issue 5728] "rol" in core.bitop

2011-08-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5728 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 5728] "rol" in core.bitop

2011-08-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5728 Adam D. Ruppe changed: What|Removed |Added CC||destructiona...@gmail.com --- Comment

[Issue 5728] "rol" in core.bitop

2011-07-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5728 --- Comment #1 from bearophile_h...@eml.cc 2011-07-28 05:35:18 PDT --- Now DMD too is able to figure by itself when a rol is needed, but I think I'd like the instrinsic still: https://github.com/D-Programming-Language/dmd/commit/32ea0206dead162