Re: portable way to get highest bit set?
candycanearter07 <[email protected]> Wed, 11 Oct 2023 20:03:31 -0500
| Newsgroups | comp.lang.c,alt.comp.lang.c |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On 10/11/23 19:35, Bart wrote: > Use 0b rather than 0x. But without numeric separators, you will need to > count carefully if you have up to 64 bits. > > Easier might be to write 1U<<31 or 1ULL<<63. Okey thanks. -- user <candycane> is generated from /dev/urandom