Re: Is PG built on any C compilers where int division floors?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is PG built on any C compilers where int division floors?
Дата
Msg-id 21233.1529897883@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is PG built on any C compilers where int division floors?  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: Is PG built on any C compilers where int division floors?  (Chapman Flack <chap@anastigmatix.net>)
Список pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> C99 finally pinned down what / does on signed ints, truncating toward zero.
> Before that, it could truncate toward zero, or floor toward -inf.
> Is PostgreSQL built on any compilers/platforms that have the floor
> behavior?

I'm not sure if we still have any buildfarm animals that act that way[1],
but the project policy is that we target C90 not C99.  So wiring in any
assumptions about this would seem to be contrary to policy.

            regards, tom lane

[1] gaur/pademelon might, but it's turned off and 300 miles away, so
I can't check right now.


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: effect of JIT tuple deform?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: effect of JIT tuple deform?