Re: Improving and extending int128.h to more of numeric.c

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: Improving and extending int128.h to more of numeric.c
Дата
Msg-id CAEZATCXrEpV=668zK3aF_OrjUjDJ4oaOVkcY_wLPwrn3O6nVLQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Improving and extending int128.h to more of numeric.c  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers
On Thu, 10 Jul 2025 at 15:06, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>
> > Yes, perhaps we should convert src/tools/testint128.c into a new test
> > extension, src/test/modules/test_int128
>
> Here's an update doing that (in 0001). 0002-0005 are unchanged.

v3 attached, fixing a couple of issues revealed by the cfbot:

1. The tests, as currently written, require a native int128 type to
run. To fix that, for now at least, skip the tests if the platform
lacks a native int128 type. We could perhaps improve on that by using
numerics to compute the expected results.

2. Fix Visual Studio compiler warning about applying a unary minus
operator to an unsigned type.

Regards,
Dean

Вложения

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