Re: Is PG built on any C compilers where int division floors?
В списке pgsql-hackers по дате отправления:
| От | 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?
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера