INT64_MIN and _MAX

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема INT64_MIN and _MAX
Дата
Msg-id 87oanmdliy.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответы Re: INT64_MIN and _MAX  (Petr Jelinek <petr@2ndquadrant.com>)
Список pgsql-hackers
A couple of places (adt/timestamp.c and pgbench.c) have this:

#ifndef INT64_MAX
#define INT64_MAX    INT64CONST(0x7FFFFFFFFFFFFFFF)
#endif

#ifndef INT64_MIN
#define INT64_MIN    (-INT64CONST(0x7FFFFFFFFFFFFFFF) - 1)
#endif

On the other hand, int8.c uses the INT64_MIN expression directly inline.

On the third hand, INT64_MIN etc. would typically be defined in stdint.h
if it exists.

So wouldn't it make more sense to move these definitions into c.h and
standardize their usage?

-- 
Andrew (irc:RhodiumToad)



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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: Abbreviated keys for Numeric
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: INT64_MIN and _MAX