This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: long long constant
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Vincent Torri <torri at math dot u-strasbg dot fr>, gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Jun 2004 07:07:45 -0500
- Subject: Re: long long constant
- References: <Pine.SOL.4.21.0406180035310.27739-100000@irmasrv2>
Hi Vincent,
Both long long, and long long numeric literals, are extensions.
A long long numeric literal requires the LL suffix. The compiler doesn't
automagically promote "too big" numeric literals into long longs.
My recommendation is to rely upon the 5 year old C99 header file <stdint.h>
(even in C++), and use their facilities.
#include <stdint.h>
static int64_t const rounder = INT64_C(0x0000400000004000);
HTH,
--Eljay