[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch-gnuradio] gr_head should take longs
From: |
Eric Blossom |
Subject: |
Re: [Patch-gnuradio] gr_head should take longs |
Date: |
Wed, 2 Dec 2009 14:13:35 -0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Dec 02, 2009 at 03:47:00PM +0100, Martin Braun wrote:
> Hi,
>
> I ran into a problem when doing some tests where I piped 1e6 samples
> through a filter. The problem is, gr_head() can only go as far as
> MAX_INT when limiting data. However, I don't really see a reason why the
> counter shouldn't be an unsigned long. Otherwise, such applications
> would require some workarounds with vectors or otherwise, which I find a
> bit ugly. Here's the patch. Made against #11663 in SVN.
>
> MB
Thanks, Martin!
This should be "long long" if you want a 64-bit value.
Can you please resubmit? Thanks!
On x86:
$ ./sizeof-long
sizeof(int) = 4
sizeof(unsigned long) = 4
sizeof(long long) = 8
On x86_64:
$ ./sizeof-long
sizeof(int) = 4
sizeof(unsigned long) = 8
sizeof(long long) = 8
Eric