[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] uint64
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] uint64 |
Date: |
Thu, 16 Feb 2006 19:17:08 -0800 |
User-agent: |
Mutt/1.5.9i |
On Wed, Feb 15, 2006 at 04:28:48AM +0100, Martin Dvh wrote:
> Hi All,
>
> I am creating a block which needs an unsigned 64 bit int (uint64) in a struct
> I want to do this in a cross-platform way but there is no gr_uint64 yet.
> I can just use unsigned long long int, but I am not sure this is save
> (allways 64 bit)
> I can include stdint.h and use uint64_t, but I don't know if this is
> available on every system
>
> The existing gr_types.h file does the following for the current types:
> typedef short gr_int16;
> typedef int gr_int32;
> typedef unsigned short gr_uint16;
> typedef unsigned int gr_uint32;
>
> I am not sure this is save too.
>
> So how to proceed?
>
> Greetings,
> Martin
Hi Martin,
I added gr_int64 and gr_uint64 to gr_types.h.
I continued the "unsafe practice" pending a proper config fix.
Eric