[M3commit] CVS Update: cm3
Jay Krell
jkrell at elego.de
Mon Feb 22 14:57:51 CET 2010
CVSROOT: /usr/cvs
Changes by: jkrell at birch. 10/02/22 14:57:51
Modified files:
cm3/m3-sys/m3back/src/: M3BackInt.m3
Log message:
remove most of the code -- delegating to TInt
Add
Subtract
Multiply
Div
Mod
(DivMod) -- which I understood least well
EQ
LT
the following significant functions remain and might merit further attention:
SignExtend
ZeroExtend
SignedTruncate
UnsignedTruncate
ToBytes
ToBytes I haven't looked into much. It could be that TInt.ToBytes can work.
But possible problems already reported.
TInt.Chop might be useful, but I'm sure we are missing some
functionality in terms of signed vs. unsigned.
Two functions are needed for widening and two for narrowing.
As well, ToChars should have signed and unsigned variations,
though we only use it for debug code and we aren't sensitive
to incorrect printing of large positive numbers.
Something is also still fishy with ToInt and/or FromInt.
Whenever I convert them, I hit problems (assertion failures in RTCollector/RTAllocator)
I haven't tried the double work + assert approach to them.
They look so simple..
More information about the M3commit
mailing list