how to make a long long

Sebastian Huber sebastian-huber@web.de
Sat Feb 22 16:30:00 GMT 2003


Adrian Sandor <aditsu@yahoo.com> schrieb am 22.02.03 16:44:50:
> 
> > what is wrong with
> > 
> > unsigned long long i = ((0x0ULL | uint32high) << 32)
> > | uint32low;
> > 
> > ?
> 
> this approach uses an OR between an unsigned long long
> and an unsigned int, a SHIFT-LEFT on an unsigned long
> long and another OR between 2 an unsigned long long
> and an unsigned int;
> I think these are too heavy calculations just for
> putting 2 unsigned ints next to each other
[...]

C is not an assembly language. It's up to the compiler to generate optimized code.

Bye
    Sebastian
______________________________________________________________________________
Die SMS direkt auf's Handy. - Die Blitz-SMS bei WEB.DE FreeMail
http://freemail.web.de/features/?mc=021165



More information about the Gcc-help mailing list