Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16
Дата
Msg-id CAEZATCXKiVcVprJVMLBB7V34ZLUsbCixdwW2SXGJ_DHOO6Dm6Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
On Mon, 23 Jan 2023 at 05:06, John Naylor <john.naylor@enterprisedb.com> wrote:
>
> According to Agner's instruction tables [1], integer division on Skylake (for example) has a latency of 26 cycles for
32-bitoperands, and 42-95 cycles for 64-bit.
 
>
> [1] https://www.agner.org/optimize/instruction_tables.pdf
>

Thanks, that's a very useful reference.

(And I do indeed have one of those CPUs, which explains what I was seeing.)

Regards,
Dean



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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: TAP output format in pg_regress
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: [PATCH] Use 128-bit math to accelerate numeric division, when 8 < divisor digits <= 16