division by 7 efficiently ???
Krypto
krypto.wizard at gmail.com
Thu Feb 1 15:25:21 EST 2007
More information about the Python-list mailing list
Thu Feb 1 15:25:21 EST 2007
- Previous message (by thread): division by 7 efficiently ???
- Next message (by thread): division by 7 efficiently ???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The correct answer as told to me by a person is (N>>3) + ((N-7*(N>>3))>>3) The above term always gives division by 7
- Previous message (by thread): division by 7 efficiently ???
- Next message (by thread): division by 7 efficiently ???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list