Re: portable way to get highest bit set?
David Brown <[email protected]> Wed, 11 Oct 2023 16:22:47 +0200
| Newsgroups | comp.lang.c,alt.comp.lang.c |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On 11/10/2023 14:17, Anton Shepelev wrote: > David Brown: > >> But he/she also needs to say if 8-bit values are all that >> are of interest, when considering portability. > > Yes, endianness, and then a hackish way to hanle it is to > use socket functions. Hackish, because conceptualy that > means the reliance of a general low-level function on a > more specific and higher-level function/library. > Endianness should not be an issue. The question is about values, and values don't have endianness. Only storage has endianness.