Pelles C forum

C language => Beginner questions => Topic started by: noorad on October 30, 2008, 09:26:24 AM

Title: re: 64 bit - no fundamentals
Post by: noorad on October 30, 2008, 09:26:24 AM
#define long long int   int64  :   NO good!
what types to use in 64bit ?
Title: Re: re: 64 bit - no fundamentals
Post by: severach on November 02, 2008, 06:17:24 AM
What makes it no good? Did it end up being 128 bit? In <stdint.h> I see:

typedef signed long long int64_t;
typedef unsigned long long uint64_t;

In <win/basetsd.h> I see:

typedef signed __int64 INT64, *PINT64;
typedef unsigned __int64 UINT64, *PUINT64;

LARGE_INTEGER works too but might be too cumbersome. Those all work in a 32 bit environment. For a 64 bit environment INT_PTR, UINT_PTR, and size_t will all be 64 bit too. I see plenty of 64 bit options.
Title: Re: re: 64 bit - no fundamentals
Post by: noorad on November 02, 2008, 08:03:07 PM
 many thanks - but what beginner is looking in ..... std  where ????
mfg lurt
Title: Re: re: 64 bit - no fundamentals
Post by: severach on November 04, 2008, 01:55:39 AM
Those files are in c:\Program Files\PellesC\Include\

__int64 and long long are in the help under "int types."