[M3commit] CVS Update: cm3

Jay K jay.krell at cornell.edu
Mon Feb 8 01:13:04 CET 2010


It is trivial to add clear/direct SignedRightShift if there is any interest.

And heck, I find the "direction specified by sign" shift just wierd.

 It makes little sense to me.

Never should have been there imho.

 

 - Jay

 
> Date: Sat, 6 Feb 2010 11:25:02 -0600
> From: rodney_bates at lcwb.coop
> To: m3commit at elegosoft.com
> Subject: Re: [M3commit] CVS Update: cm3
> 
> 
> 
> 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.
> 
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3commit/attachments/20100208/c2ff57f6/attachment-0002.html>


More information about the M3commit mailing list