[BusyBox] uint64_t

Vladimir N. Oleynik dzo at simtreas.ru
Tue Aug 21 23:17:31 MDT 2001


Aaron Lehmann wrote:
> 
> On Wed, Aug 22, 2001 at 08:07:26AM +0400, Vladimir N. Oleynik wrote:
> > Hi,
> >
> > I see fresh patch to dos2unix.c. I think, that it is not true, as the
> > description uint64_t
> > depends on the size of a word of the processor and for 32-bit architecture it is
> > necessary
> > to describe as "long long". Can be put #if sizeof (int)?
> 
> Hmm, it does look wrong.
> 
> But I think they meant typedef unsigned long long int, instead of
> typedef unsigned long int.

value += ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec ^ getpid ();

tv_usec - long. << 16 = 48 bits.
 
> long long is guarenteed to be >=64bit by at least GNU C and C99.

Hmm, you tested busybox in other compilers? ;-)


--w
vodz





More information about the busybox mailing list