Preferred way to define 64-bit constants?

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Preferred way to define 64-bit constants?
Date: 2012-06-24 17:23:31
Message-ID: 4FE74D13.9090103@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Cédric Villemain 2012-06-24 17:36:16 Re: pg_prewarm
Previous Message Heikki Linnakangas 2012-06-24 16:24:31 Re: WAL format changes