Re: Optimize mul_var() for var1ndigits >= 8

Поиск
Список
Период
Сортировка
От Joel Jacobson
Тема Re: Optimize mul_var() for var1ndigits >= 8
Дата
Msg-id eba7af4a-b7d8-407e-bf62-5e391f5f55c6@app.fastmail.com
обсуждение исходный текст
Ответ на Re: Optimize mul_var() for var1ndigits >= 8  ("Joel Jacobson" <joel@compiler.org>)
Ответы Re: Optimize mul_var() for var1ndigits >= 8
Список pgsql-hackers
On Tue, Aug 13, 2024, at 13:01, Joel Jacobson wrote:
> I think this is acceptable, since it produces more correct results.

In addition, I've traced the rscale_adjustment -15 mul_var() calls to originate
from numeric_exp() and numeric_power(), so I thought it would be good to
brute-force test those as well, to get an idea of the probability of different
results from those functions.

Brute-force testing of course doesn't prove it's impossible to happen,
but millions of inputs didn't cause any observable differences in the
returned results, so I think it's at least very improbable to
happen in practice.

Regards,
Joel
Вложения

В списке pgsql-hackers по дате отправления: