Bitwise operations: Difference between revisions

Fixed bug in D code
(Updated D code)
(Fixed bug in D code)
Line 322:
<lang d>import std.stdio;
 
T rot(T)(in T x, in int shift) pure nothrow {
return (x >>> shift) | (x << (T.sizeof * 8 - shift));
}
 
Anonymous user