Preferred way to define 64-bit constants?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Preferred way to define 64-bit constants?
Дата
Msg-id 4FE74D13.9090103@enterprisedb.com
обсуждение исходный текст
Ответы Re: Preferred way to define 64-bit constants?  (Peter Geoghegan <peter@2ndquadrant.com>)
Re: Preferred way to define 64-bit constants?  (Peter Eisentraut <peter_e@gmx.net>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: WAL format changes
Следующее
От: Cédric Villemain
Дата:
Сообщение: Re: pg_prewarm