[Vm-dev] 3 Bugs in LargeInteger primitives

Stefan Marr smalltalk at stefan-marr.de
Thu Aug 30 09:31:04 UTC 2012


On 30 Aug 2012, at 01:14, Nicolas Cellier wrote:

> See also http://code.google.com/p/cog/issues/detail?id=92 where I
> attached a fix for large int
> It's untested yet and to review carefully !
> As Stefan told, there is UB-reliance in SmallInteger primitives too,
> but I did not fix them.
> We should simply compute result as signed 64 bits as proposed by
> Stefan (except bitShift)

This might be the simplest solution, but at least on the RoarVM I measured a significant performance impact on tight integer loops.
It's 20% according to my measurements.

Might be something necessary to be considered.

Best regards

Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
Phone: +32 2 629 2974
Fax:   +32 2 629 3525

More information about the Vm-dev mailing list