how to make a long long

Sebastian Huber sebastian-huber@web.de
Thu Feb 20 11:02:00 GMT 2003


On Thursday 20 February 2003 09:56, Adrian Sandor wrote:
> Wich is the proper way to make an unsigned long long
> from two unsigned ints (high and low dwords) without
> too many conversions and calculations?
> [...]

Hi,
what is wrong with

unsigned long long i = ((0x0ULL | uint32high) << 32) | uint32low;

?

Ciao



More information about the Gcc-help mailing list