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

Re: Arithmetic issues - feedback

This page is part of the web mail archives of SRFI 77 from before July 7th, 2015. The new archives for SRFI 77 contain all messages, not just those from before July 7th, 2015.

bear <bear@xxxxxxxxx> writes:

> 1) Represent powers of ten exactly, indicating a numeric format
>    with an exponent-of-five as well as an exponent-of-two.

Why not a single exponent-of-ten instead?

> So, unexectedly, if I can be clever enough with my basic operations
> to avoid cache stalls and conditionals, this isn't even a big
> performance hit.

I believe this would be a serious performance hit. The format is
complex, and it's not supported by hardware like binary FP. And with
a uniform representation you can't use a fast path for integer only

   __("<         Marcin Kowalczyk
   \__/       qrczak@xxxxxxxxxx
    ^^     http://qrnik.knm.org.pl/~qrczak/