Re: [HACKERS] Autoconf'd test for int64

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-patches(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Autoconf'd test for int64
Date: 1998-08-23 22:30:14
Message-ID: 199808232230.SAA25738@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Applied. Autoconf run.

> Attached is a patch that uses autoconf to determine whether there is
> a working 64-bit-int type available.
>
> In playing around with it on my machine, I found that gcc provides
> perfectly fine support for "long long" arithmetic ... but sprintf()
> and sscanf(), which are system-supplied, don't work :-(. So the
> autoconf test program does a cursory test on them too.
>
> If we find that a lot of systems are like this, it might be worth
> the trouble to implement binary<->ASCII conversion of int64 ourselves
> rather than relying on sprintf/sscanf to handle the data type.
>
> regards, tom lane

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Hartwig 1998-08-23 23:55:29 Re: [INTERFACES] Re: [HACKERS] changes in 6.4
Previous Message Oleg Bartunov 1998-08-23 22:26:46 Re: [HACKERS] initdb problem