Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #163330
| Path | csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: Check if all 256 bits are clear or set ? |
| Date | Sun, 07 Nov 2021 08:12:16 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 24 |
| Message-ID | <86ee7saqsf.fsf@linuxsc.com> (permalink) |
| References | <e829b7da-73c3-434a-9284-ab3b90f4e566n@googlegroups.com> <bits-20211029021300@ram.dialup.fu-berlin.de> <sm095i-892.ln1@aretha.foo> <87fssdh302.fsf@bsb.me.uk> <37fh5i-t92.ln1@aretha.foo> <87ilx5a6nf.fsf@bsb.me.uk> <86r1bsc4b7.fsf@linuxsc.com> <87fss86d5g.fsf@bsb.me.uk> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | reader02.eternal-september.org; posting-host="2dc722b95f3891b2f37c442b9fb0adbf"; logging-data="7671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9oiWOB9r4urYLCzH6DANWH9Tdp7qrbMI=" |
| User-Agent | Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) |
| Cancel-Lock | sha1:21dmjJaK79Pl0XYvDBTBhBec8is= sha1:8vxeTAdH62jO5yydhApcm2X4A8M= |
| Xref | csiph.com comp.lang.c:163330 |
Show key headers only | View raw
Ben Bacarisse <ben.usenet@bsb.me.uk> writes: > Tim Rentsch <tr.17687@z991.linuxsc.com> writes: > >> Ben Bacarisse <ben.usenet@bsb.me.uk> writes: >> >>> i = 0; >>> while (i < n && (unsigned char)~0U == data[i]) i++; >>> // i >= n or data[i] != -1 >>> if (i < n) >>> // data[i] != -1 >>> clrset ^= ALL_SET; >>> >>> i = 0; >>> while (i < n && 0 == data[i]) i++; >>> // i >= n or data[i] != 0 >>> if (i < n) >>> // data[i] != 0 >>> clrset ^= ALL_CLEAR; > > For the record, not what I would write! [...] I never assumed otherwise. I was just having fun with the code.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Check if all 256 bits are clear or set ? skybuck2000 <skybuck2000@hotmail.com> - 2021-10-28 17:47 -0700
Re: Check if all 256 bits are clear or set ? skybuck2000 <skybuck2000@hotmail.com> - 2021-10-28 18:02 -0700
Re: Check if all 256 bits are clear or set ? skybuck2000 <skybuck2000@hotmail.com> - 2021-10-28 18:12 -0700
Re: Check if all 256 bits are clear or set ? skybuck2000 <skybuck2000@hotmail.com> - 2021-10-28 19:18 -0700
Re: Check if all 256 bits are clear or set ? skybuck2000 <skybuck2000@hotmail.com> - 2021-10-29 05:16 -0700
Re: Check if all 256 bits are clear or set ? Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2021-11-03 11:11 +1100
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-03 11:50 +0000
Re: Check if all 256 bits are clear or set ? Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2021-11-06 16:08 +1100
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-06 11:02 +0000
Re: Check if all 256 bits are clear or set ? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-11-06 15:04 -0700
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-06 22:06 +0000
Re: Check if all 256 bits are clear or set ? Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2021-11-13 11:54 +1100
Re: Check if all 256 bits are clear or set ? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-11-06 15:22 -0700
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-07 00:08 +0000
Re: Check if all 256 bits are clear or set ? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-11-07 08:12 -0800
Re: Check if all 256 bits are clear or set ? skybuck2000 <skybuck2000@hotmail.com> - 2021-11-23 08:23 -0800
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-06 15:01 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-03 21:04 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-03 21:09 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-03 21:11 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-03 21:25 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-04 07:05 +0100
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-04 11:37 +0000
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-04 17:58 +0100
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-04 17:13 +0000
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-04 18:15 +0100
Re: Check if all 256 bits are clear or set ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-04 17:27 +0000
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-04 18:29 +0100
Re: Check if all 256 bits are clear or set ? scott@slp53.sl.home (Scott Lurndal) - 2021-11-04 17:28 +0000
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-05 11:56 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-05 18:20 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-05 18:32 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-04 18:13 +0100
Re: Check if all 256 bits are clear or set ? Manfred <noname@add.invalid> - 2021-11-04 19:28 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-04 20:29 +0100
Re: Check if all 256 bits are clear or set ? Manfred <noname@add.invalid> - 2021-11-05 02:06 +0100
Re: Check if all 256 bits are clear or set ? Bonita Montero <Bonita.Montero@gmail.com> - 2021-11-05 08:57 +0100
Re: Check if all 256 bits are clear or set ? Bart <bc@freeuk.com> - 2021-11-04 18:01 +0000
csiph-web