[Issue 6829] Unsigned rotate standard function in Phobos
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 10 02:38:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6829
Iain Buclaw <ibuclaw at ubuntu.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at ubuntu.com
--- Comment #6 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-07-10 02:38:38 PDT ---
(In reply to comment #5)
> I think this should be a recognizable rotate left function:
>
> private static uint rol(in uint x, in uint y) pure nothrow {
> return (x << y) | (x >> (32 - y));
> }
It is (in gdc with -O :)
_D3rol3rolFNaNbxkxkZk:
mov x, %eax
mov y, %ecx
rol %cl, %eax
ret
--
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