Re: portable way to get highest bit set?

David Brown <[email protected]> Wed, 11 Oct 2023 13:58:35 +0200
Newsgroups comp.lang.c,alt.comp.lang.c
Organization A noiseless patient Spider
Message-ID <[email protected]>
On 11/10/2023 11:33, Anton Shepelev wrote:
> David Brown:
> 
>> And what types do you want to support?  All integer types,
>> or just some specific ones?
> 
> The OP's example shows a byte -- an 8-bit value, but I
> encourage them to try and publish their own solution first.
> 

I fully agree with that suggestion.

But he/she also needs to say if 8-bit values are all that are of 
interest, when considering portability.