Re: The new 'isinf.c' function in port.

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: "Billy G(dot) Allie" <Bill(dot)Allie(at)mug(dot)org>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: The new 'isinf.c' function in port.
Date: 1998-02-06 12:59:56
Message-ID: Pine.NEB.3.95.980206075403.5476A-100000@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 5 Feb 1998, Billy G. Allie wrote:

> Hi Marc,
>
> I was looking at the new 'isinf.c' function in the src/backend/port directory.
> I have a question about the inclusion of cases for FP_SNAN and FP_QNAN.
>
> Does the 'isinf' function mean "not finite" or "is infinity"?
>
> If it is to mean "not finite", then (IMHO) then checking for FP_SNAN and
> FP_QNAN is appropiate. If it is to mean "is infinity", then the function
> should only be checking (again, IHMO) for FP_NINF and FP_PINF.

Good question...

From FreeBSD's man page:

The isninf() function returns 1 if the number is ``infinity'', otherwise
0.

In my defence, those functions were just pulled in from the
various ports themselves...I believe you are correct about removing
FP_SNAN/FP_QNAN...

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 1998-02-06 13:25:24 Re: [HACKERS] Bug?
Previous Message Andrew Martin 1998-02-06 11:22:57 VAX portt was Re: [HACKERS] configure on linux