division by 7 efficiently ???

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Feb 1 16:45:07 EST 2007


In <1170361512.204099.191740 at a75g2000cwd.googlegroups.com>, Krypto wrote:

> The correct answer as told to me by a person is
> 
> (N>>3) + ((N-7*(N>>3))>>3)

How could it be correct if it uses `-`?  You ruled out `-` and `/` in your
first post.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list