Post Reply 
(16C) show which bits are set in a number
03-07-2019, 01:45 AM
Post: #13
RE: (16C) show which bits are set in a number
One slight inefficiency is that you test all the bits; i might add back in my use of #b so we can stop when we know we've found them all.

but I like the shifting technique, thanks Smile

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (16C) show which bits are set in a number - cdmackay - 03-07-2019 01:45 AM



User(s) browsing this thread: 1 Guest(s)