Re: Preferred way to define 64-bit constants?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Preferred way to define 64-bit constants?
Date: 2012-06-24 18:34:38
Message-ID: 1340562878.13589.0.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2012-06-24 18:40:51 warning handling in Perl scripts
Previous Message Simon Riggs 2012-06-24 18:34:29 Re: WAL format changes