<feed xmlns='http://www.w3.org/2005/Atom'>
<title>postgresql.git/src/port/rint.c, branch master</title>
<subtitle>This is the main PostgreSQL git repository.</subtitle>
<id>http://git.postgresql.org/cgit/postgresql.git/atom?h=master</id>
<link rel='self' href='http://git.postgresql.org/cgit/postgresql.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/'/>
<updated>2020-02-21T19:30:47Z</updated>
<entry>
<title>Assume that we have rint().</title>
<updated>2020-02-21T19:30:47Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2020-02-21T18:47:40Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=f88a058200a40032e88a8bfc1aea453c22d2dcb0'/>
<id>urn:sha1:f88a058200a40032e88a8bfc1aea453c22d2dcb0</id>
<content type='text'>
Windows has this since _MSC_VER &gt;= 1200, and so do all other live
platforms according to the buildfarm, so remove the configure probe
and src/port/ substitution.

This is part of a series of commits to get rid of no-longer-relevant
configure checks and dead src/port/ code.  I'm committing them separately
to make it easier to back out individual changes if they prove less
portable than I expect.

Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
</content>
</entry>
<entry>
<title>Rethink how to get float.h in old Windows API for isnan/isinf</title>
<updated>2018-07-11T13:11:48Z</updated>
<author>
<name>Alvaro Herrera</name>
</author>
<published>2018-07-11T13:09:59Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=f2c587067a8eb9cf1c8f009262381a6576ba3dd0'/>
<id>urn:sha1:f2c587067a8eb9cf1c8f009262381a6576ba3dd0</id>
<content type='text'>
We include &lt;float.h&gt; in every place that needs isnan(), because MSVC
used to require it.  However, since MSVC 2013 that's no longer necessary
(cf. commit cec8394b5ccd), so we can retire the inclusion to a
version-specific stanza in win32_port.h, where it doesn't need to
pollute random .c files.  The header is of course still needed in a few
places for other reasons.

I (Álvaro) removed float.h from a few more files than in Emre's original
patch.  This doesn't break the build in my system, but we'll see what
the buildfarm has to say about it all.

Author: Emre Hasegeli
Discussion: https://postgr.es/m/CAE2gYzyc0+5uG+Cd9-BSL7NKC8LSHLNg1Aq2=8ubjnUwut4_iw@mail.gmail.com
</content>
</entry>
<entry>
<title>Upgrade src/port/rint.c to be POSIX-compliant.</title>
<updated>2015-03-25T19:54:18Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2015-03-25T19:54:08Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=06bf0dd6e354c765403d1331cc9896b360754521'/>
<id>urn:sha1:06bf0dd6e354c765403d1331cc9896b360754521</id>
<content type='text'>
The POSIX spec says that rint() rounds halfway cases to nearest even.
Our substitute implementation failed to do that, rather rounding halfway
cases away from zero; and it also got some other cases (such as minus
zero) wrong.  This led to observable cross-platform differences, as
reported in bug #12885 from Rich Schaaf; in particular, casting from
float to int didn't honor round-to-nearest-even on builds using rint.c.

Implement something that attempts to cover all cases per spec, and add
some simple regression tests so that we'll notice if any platforms still
get this wrong.

Although this is a bug fix, no back-patch, as a behavioral change in
the back branches was agreed not to be a good idea.

Pedro Gimeno Fortea, reviewed by Michael Paquier and myself
</content>
</entry>
<entry>
<title>Remove cvs keywords from all files.</title>
<updated>2010-09-20T20:08:53Z</updated>
<author>
<name>Magnus Hagander</name>
</author>
<published>2010-09-20T20:08:53Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=9f2e211386931f7aee48ffbc2fcaef1632d8329f'/>
<id>urn:sha1:9f2e211386931f7aee48ffbc2fcaef1632d8329f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid changing the sign of zero.  Per buildfarm failures.</title>
<updated>2010-02-06T05:42:49Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2010-02-06T05:42:49Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=7fc30c488fc6e9674564206193c29b1a657a818f'/>
<id>urn:sha1:7fc30c488fc6e9674564206193c29b1a657a818f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rewrite rint() to enable removal of copyright mention;  patch from</title>
<updated>2010-02-05T03:20:56Z</updated>
<author>
<name>Bruce Momjian</name>
</author>
<published>2010-02-05T03:20:56Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=8283b65019b6d0274853128d6a618b36745d7e5e'/>
<id>urn:sha1:8283b65019b6d0274853128d6a618b36745d7e5e</id>
<content type='text'>
Nathan Wagner

Function is simpler too.
</content>
</entry>
<entry>
<title>$Header: -&gt; $PostgreSQL Changes ...</title>
<updated>2003-11-29T19:52:15Z</updated>
<author>
<name>PostgreSQL Daemon</name>
</author>
<published>2003-11-29T19:52:15Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=969685ad443637a24650909357e4e768a88412fc'/>
<id>urn:sha1:969685ad443637a24650909357e4e768a88412fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add rint() to /port, remove from qnx/.</title>
<updated>2003-05-09T16:26:29Z</updated>
<author>
<name>Bruce Momjian</name>
</author>
<published>2003-05-09T16:26:29Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=0afe5417d79711bc73cfbffd01baf97912ad46d6'/>
<id>urn:sha1:0afe5417d79711bc73cfbffd01baf97912ad46d6</id>
<content type='text'>
</content>
</entry>
</feed>
