Bitwise operations: Difference between revisions

Content deleted Content added
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));
}