[M3commit] CVS Update: cm3

Rodney M. Bates rodney_bates at lcwb.coop
Sat Feb 6 18:25:02 CET 2010



Jay Krell wrote:
> CVSROOT:	/usr/cvs
> Changes by:	jkrell at birch.	10/02/06 15:05:57
> 
> Modified files:
> 	cm3/m3-sys/m3back/src/: M3x86.m3 
> 
> Log message:
> 	hm, looks like shift_right is always supposed to be unsigned?
> 
> 
Yup.  Word.eroShift (which Word.RightShift is also defined in terms of)
shifts zeros into vacated bits, in either direction.

I have sometimes wanted a signed right shift, but realized
eventually that DIV by 2^n will do it. But if n is variable,
that takes another runtime operation.





More information about the M3commit mailing list