tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 64-bit masks



> 1. What is the correct (portable?) way of specifying 64-bit constants?
>
> If I need a 64-bit constant set to all 1s, will the following work on all 
> systems
>
> unit64_t num = 0xffffffffffffffffULL;

        unit64_t num = UINT64_C(~0);

Masao

-- 
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635


Home | Main Index | Thread Index | Old Index