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


Groups > comp.misc > #13394

Re: how much computers can do in one second

From Bob Eager <news0006@eager.cx>
Newsgroups comp.misc
Subject Re: how much computers can do in one second
Date 2017-03-30 21:36 +0000
Message-ID <ek5c3mFmi9rU26@mid.individual.net> (permalink)
References (2 earlier) <87vaqsvr4i.fsf@bsb.me.uk> <8737dwwmdc.fsf@LkoBDZeT.terraraq.uk> <87r31gmn9w.fsf@elektro.pacujo.net> <cj7qdcdjcafrd88ena4k3no13d2bkuqutk@4ax.com> <87d1cywxtg.fsf@elektro.pacujo.net>

Show all headers | View raw


On Thu, 30 Mar 2017 19:09:47 +0300, Marko Rauhamaa wrote:

> A C programmer also needs to regularly depend on the benign wrapping
> behavior of (unsigned) integers. For example, you can safely implement a
> ring buffer by incrementing the read index and the write index as long
> as the size of the ring buffer is a power of 2.

Bad programming style though. Use the modulus operator or just test the 
value.


-- 
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
 http://www.mirrorservice.org

Back to comp.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how much computers can do in one second RS Wood <rsw@therandymon.com> - 2017-03-27 14:43 +0300
  Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-27 15:06 +0300
    Re: how much computers can do in one second Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-29 01:55 +0100
      Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-29 10:25 +0300
      Re: how much computers can do in one second Richard Kettlewell <invalid@invalid.invalid> - 2017-03-29 08:52 +0100
        Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-29 12:43 +0300
          Re: how much computers can do in one second Caecilius <nospam@spamless.invalid> - 2017-03-30 16:07 +0100
            Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-30 19:09 +0300
              Re: how much computers can do in one second Bob Eager <news0006@eager.cx> - 2017-03-30 21:36 +0000
                Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-31 09:56 +0300
  Re: how much computers can do in one second Huge <Huge@nowhere.much.invalid> - 2017-03-27 13:51 +0000
  Re: how much computers can do in one second Sylvia Else <sylvia@not.at.this.address> - 2017-03-28 11:57 +1100
    Re: how much computers can do in one second Huge <Huge@nowhere.much.invalid> - 2017-03-28 09:51 +0000
      Re: how much computers can do in one second Bob Eager <news0006@eager.cx> - 2017-03-28 11:12 +0000

csiph-web