suggested improvements to D

Sebastian Biallas groups.5.sepp at spamgourmet.com
Thu Jan 11 18:18:09 PST 2007


Don Clugston wrote:
> Rotations without carry would be very nice. 

Rotations without carry are available if the compiler recognizes the
common idioms:

gcc recognizes:
unsigned int foo(unsigned int u)
{
	return u << 16 | u >> 16;
}

(will make a rotate instruction, if possible)



More information about the Digitalmars-d mailing list