[M3devel] m3cg shift value/count types

Jay K jay.krell at cornell.edu
Sat Sep 22 20:00:36 CEST 2012


M3CG_Ops.i3:
shift        (t: IType);  (* s1.t := Word.Shift  (s1.t, s0.t); pop *)rotate       (t: IType);  (* s1.t := Word.Rotate (s1.t, s0.t); pop *)

This doesn't seem right to me.
s0 is signed.s1 is not
I have it implemented as:
#define m3_shift_T(T) static T m3_shift_##T(T value,INTEGER shift)...
where T is UINT32 or UINT64.
"shift" can vary..I'll look at the frontend...
 - Jay 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120922/a74cf89b/attachment-0001.html>


More information about the M3devel mailing list