Skip site navigation (1) Skip section navigation (2)

NAN code

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: hackers(at)postgreSQL(dot)org (PostgreSQL-development)
Subject: NAN code
Date: 1999-01-01 04:16:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I have changed the NAN code, so if NAN is not defined, we just use 'num'
as NAN, since we only get here if num is NAN.  Seems like a good fix for
platforms that can't assign a NAN to a variable.


    if (NUMERIC_IS_NAN(num))
        result = (float32)palloc(sizeof(float32data));
#ifdef NAN
        *result = NAN;
        *result = num;
        return result;

  Bruce Momjian                        |
  maillist(at)candle(dot)pha(dot)pa(dot)us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


pgsql-hackers by date

Next:From: Bruce MomjianDate: 1999-01-01 04:23:48
Subject: NAN code
Previous:From: Bruce MomjianDate: 1998-12-31 22:36:55
Subject: NAN value

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group