NO

Author Topic: re: 64 bit - no fundamentals  (Read 2890 times)

noorad

  • Guest
re: 64 bit - no fundamentals
« on: October 30, 2008, 09:26:24 AM »
#define long long int   int64  :   NO good!
what types to use in 64bit ?

severach

  • Guest
Re: re: 64 bit - no fundamentals
« Reply #1 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:
Code: [Select]
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
In <win/basetsd.h> I see:
Code: [Select]
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.

noorad

  • Guest
Re: re: 64 bit - no fundamentals
« Reply #2 on: November 02, 2008, 08:03:07 PM »
 many thanks - but what beginner is looking in ..... std  where ????
mfg lurt

severach

  • Guest
Re: re: 64 bit - no fundamentals
« Reply #3 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."