Re: portable way to get highest bit set?
David Brown <[email protected]> Wed, 11 Oct 2023 18:28:24 +0200
| Newsgroups | comp.lang.c,alt.comp.lang.c |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On 11/10/2023 18:20, Ben Bacarisse wrote: > David Brown <[email protected]> writes: > >> Endianness should not be an issue. The question is about values, and >> values don't have endianness. Only storage has endianness. > > But solutions could use the byte representation and endianness would > then come into it. > Sure. But that would be an artefact of a particular solution, rather than being inherent in the problem.