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


Groups > comp.programming > #9245

Re: Simpler way to dp binary logical operation using arithmetic?

From nobody@example.org (Scott)
Newsgroups comp.programming
Subject Re: Simpler way to dp binary logical operation using arithmetic?
Date 2018-09-11 15:24 +0000
Organization XMission http://xmission.com/
Message-ID <5b97daa2.1687216375@news.xmission.com> (permalink)
References <bx7o6lmzra8t.mz0g7tl4wryj.dlg@40tude.net> <pn67cd$6jq$1@dont-email.me> <14tss0kh2mbf7$.merzosllbaxz$.dlg@40tude.net>

Show all headers | View raw


On Tue, 11 Sep 2018 03:02:59 +0700, JJ <jj4public@vfemail.net> wrote:

>I was hoping if there's math equation(s) to apply bitwise operation for the
>whole e.g. 8-bits, 16-bits, etc.
>
>Kind of like the algorithm which uses multiplication to perform a division.
>What's it called? Reciprocal division? Not that I meant to use it for this
>bitwise operations.

You mean a procedure whereby simple operations are performed
repeatedly in order to achieve a more complex operation? That's how
you do multiplication and division when they're not built in. That's
also how you do bit bashing when it's not built in. Won't be pretty,
but it'll work.

If there was an easy answer, nobody would have bothered to invent bit
bashing operators.

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


Thread

Simpler way to dp binary logical operation using arithmetic? JJ <jj4public@vfemail.net> - 2018-09-10 22:56 +0700
  Re: Simpler way to dp binary logical operation using arithmetic? Julio Di Egidio <julio@diegidio.name> - 2018-09-10 09:30 -0700
    Re: Simpler way to dp binary logical operation using arithmetic? JJ <jj4public@vfemail.net> - 2018-09-11 02:13 +0700
      Re: Simpler way to dp binary logical operation using arithmetic? Julio Di Egidio <julio@diegidio.name> - 2018-09-10 14:21 -0700
  Re: Simpler way to dp binary logical operation using arithmetic? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2018-09-10 18:32 +0200
    Re: Simpler way to dp binary logical operation using arithmetic? JJ <jj4public@vfemail.net> - 2018-09-11 02:26 +0700
      Re: Simpler way to dp binary logical operation using arithmetic? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2018-09-10 22:00 +0200
        Re: Simpler way to dp binary logical operation using arithmetic? JJ <jj4public@vfemail.net> - 2018-09-11 03:22 +0700
  Re: Simpler way to dp binary logical operation using arithmetic? David Brown <david.brown@hesbynett.no> - 2018-09-10 18:50 +0200
    Re: Simpler way to dp binary logical operation using arithmetic? JJ <jj4public@vfemail.net> - 2018-09-11 03:02 +0700
      Re: Simpler way to dp binary logical operation using arithmetic? nobody@example.org (Scott) - 2018-09-11 15:24 +0000
  Re: Simpler way to dp binary logical operation using arithmetic? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-09-10 18:59 +0100
    Re: Simpler way to dp binary logical operation using arithmetic? JJ <jj4public@vfemail.net> - 2018-09-11 03:08 +0700

csiph-web