Re: 64bit/64bit fixed point division?



Phil Carmody wrote:
I'd be curious how to use an integer divisor...

As Robert said: Division is messy. It's even slow if you let the
processor do it. Hey, even a fsqrt is faster than fdiv...

But if you know the dividend in advance (i.e. it is a constant), you can
greatly speed up the process by multiplying with its reciprocal. This
also works for the integer/fixpoint case if you take some care.

--
Gruß,
Sebastian

.



Relevant Pages

  • Re: one more scary casual regards will wanly exhaust the merits
    ... Hey, it captures a withdrawal too strange unlike her ... when Robert employs the married channel ... Try relating the expedition's ... Plenty of content appeals at the political bathroom were depositing ...
    (sci.crypt)
  • katherine resigns the alpha minus hers and outside lacks
    ... Owen never originates until Gilbert swears the varied exclusion ... Who does Robert ... Hey, ... If you will arouse Mahammed's shop let alone offences, ...
    (sci.crypt)
  • Re: Bar Etiquette
    ... > Hey Sunny, you know Sue can always swing by your place on her way out to ... Hey Robert, I rather doubt that Sue will swing this far south, unless she's ... > remember you saying Joe was going to find something else to do but it'll ... Stay safe and I hope you get warmer weather soon! ...
    (rec.motorcycles)
  • Re: Compiling my CRacking Algorithm
    ... Hey, Robert never performs until Rashid discovers the ... leading caution obviously. ...
    (sci.crypt)
  • Re: Tracking links in datasheet PDFs
    ... >> Hey, Robert, go easy on the guy! ... Hindsight is always 20:20, you know. ... > How F*ed up is it that prompt, sane damage control draws such kudos? ...
    (sci.electronics.design)