Re: division by 7 without using division operator



The fact that compilers can perform this optimization -- and, perhaps
more important, can decide when it is and isn't necessary -- is a good
reason *not* to bother doing this yourself. Just divide by 7; that's
what the "/" operator is for.

/ operator often leads to 32 instructions of shift and add or an
instruction which takes that much time unless you have a multiplier
application to do it. This is the reason many a times it is avoided in
DSP, embedded systems applications and such hacks are needed.

.



Relevant Pages

  • Re: division by 7 without using division operator
    ... reason *not* to bother doing this yourself. ... Just divide by 7; that's ... embedded systems applications and such hacks are needed. ...
    (comp.lang.c)
  • Re: Stupid question about RMA and BJJ
    ... cannot reason a man out of a position he did not reach through reason in the ... much everyone in the world lied since the conventional wisdom was that Iraq ... Of course, you never bother to ... I, for example, am on record, before the war, as saying that even ...
    (rec.martial-arts)
  • Re: College cooking
    ... >> rampant nowadays for some reason. ... >> to a new cook, which, if instructions were followed, would turn out fine. ... > Limbaugh, where The Everyman can use his common sense in brain surgery, ... and a hot plate. ...
    (rec.food.cooking)
  • Re: [opensuse] Getting rid of "Marching Penguins"
    ... However, whatever the reason, there should be a ... not instructions that don't work. ... know about that and that it applies to SUSE? ... for business use and they are quite serious about business. ...
    (SuSE)
  • Re: Remastering
    ... In recent years I have occasionally bought CDs of modern rock ... Why should we bother to do for them what they are paid to do? ... Given the clear idiocy of the 'reason' put forward for their delusions that ... Audio Misc http://www.audiomisc.co.uk/index.html ...
    (uk.rec.audio)