Path: csiph.com!xmission!news.alt.net!not-for-mail From: owl Newsgroups: comp.os.linux.advocacy Subject: Re: Fabian's code is always slower. Date: Thu, 3 Aug 2017 18:41:06 +0000 (UTC) Organization: O.W.L. Lines: 21 Message-ID: References: NNTP-Posting-Host: boom.rooftop.invalid X-Face: $BHf)vM$6p_?9L`jmOQ54JeNyL+%MZGGRfH8&grb[Y%-jU`MCPAQN=/SVDa{(/67bP(YB}rjV^h>cUh User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-4-amd64 (x86_64)) Xref: csiph.com comp.os.linux.advocacy:425659 fr314159@gmail.com wrote: > On Wednesday, August 2, 2017 at 11:48:31 PM UTC-4, Jeff-Relf.Me wrote: > >> >> >> Owl's is usually faster, >> > > His code? Ha, ha, ha, ha, ha, ha, ha, ha, ha! > > Until I proposed the idea, he never would have dreamed in > a milliion years to do it without division. > > There are differences between monkeys and humans. > Fabtard, I used addition because you demanded a solution that did not use division. I agree that my first instinct would be to use modulo, and it's only about 10% slower that way. BTW, still waiting on your code for three values. Try to do it without copying mine.