Re: Preferred way to define 64-bit constants? - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Preferred way to define 64-bit constants?
Date
Msg-id 4FE762D1.6060209@enterprisedb.com
Whole thread Raw
In response to Re: Preferred way to define 64-bit constants?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On 24.06.2012 21:34, Peter Eisentraut wrote:
> On sön, 2012-06-24 at 20:23 +0300, Heikki Linnakangas wrote:
>> I just committed the patch to change XLogRecPtr into a 64-bit constant,
>> and I did this in the patch:
>>
>> #define XLogSegmentsPerXLogId  (0x100000000LL / XLOG_SEG_SIZE)
>>
>> But I started to wonder, is that LL representation the preferred way to
>> define 64-bit integer constants? I thought it is, but now that I grep
>> around, I don't see any constants like that in the source tree.
>
> See INT64CONST, UINT64CONST.

Thanks, fixed.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: warning handling in Perl scripts
Next
From: Robert Haas
Date:
Subject: Re: warning handling in Perl scripts