Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #225134

Re: portable way to get highest bit set?

From Anton Shepelev <anton.txt@g{oogle}mail.com>
Newsgroups comp.lang.c, alt.comp.lang.c
Subject Re: portable way to get highest bit set?
Date 2023-10-11 15:17 +0300
Organization A noiseless patient Spider
Message-ID <20231011151734.ba0c52c02ebe2e2ccd99b67d@g{oogle}mail.com> (permalink)
References <ug5gvh$1jkar$3@dont-email.me> <20231011102714.44a870af4dfe68f756974953@g{oogle}mail.com> <ug5q1l$1on2h$1@dont-email.me> <20231011123329.086687ffe639d443a6a7adef@g{oogle}mail.com> <ug62lb$1qfmd$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


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.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments

Back to comp.lang.c | Previous | NextPrevious in thread | Find similar


Thread

Re: portable way to get highest bit set? David Brown <david.brown@hesbynett.no> - 2023-10-11 13:58 +0200
  Re: portable way to get highest bit set? Anton Shepelev <anton.txt@g{oogle}mail.com> - 2023-10-11 15:17 +0300

csiph-web