lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Aug 24, 2006 at 11:29:28AM -0700, Sam Roberts wrote:
> How much slower is it than onboard integral arithmetic? Don't some
> processors support BCD instructions?

Some 1960s IBM mainframes such as the 360 have BCD instructions.  I
assume its successors such as the 370, 390, and the current zSeries
have the same instructions for backward compatibility.  I don't know
if any modern CPUs support BCD for any reason _other_ than backward
compatibility with old code, though.

                                                  -Dave Dodge