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

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Is PG built on any C compilers where int division floors?
Date: 2018-06-25 02:42:49
Message-ID: 5B3056A9.1000700@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

-Chap

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-06-25 02:43:56 Incorrect fsync handling in pg_basebackup's tar_finish
Previous Message Michael Paquier 2018-06-25 02:33:59 Re: Supporting tls-server-end-point as SCRAM channel binding for OpenSSL 1.0.0 and 1.0.1