[Tutor] Magic numbers

Alan Gauld alan.gauld at yahoo.co.uk
Fri Aug 6 04:02:39 EDT 2021


On 06/08/2021 02:08, Phil wrote:
> On 5/8/21 7:32 pm, Alan Gauld via Tutor wrote:
> 
> Thank you everyone for your replies, I didn't expect so much interest.
>> Incidentally, why are you using bit shifting rather
>> than regular arithmetic?
> 
> I'm simulating a shift register that can shift either left or right. 

Ah! Ok, that's not really "doing bit shifting calculations"
it is doing actual bit shifting!

It makes complete sense in that context.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list