Re: bitwise operators
I think truth tables are more annoying than helpful in audio, and just each case as a statement would be easier to follow.
No, there is no difference between those two statements. Bitshifting is more useful when the power of 2 in question is variable. It's faster and easier to type x<<y than x * power(2, y). Python does have exponents (x * (2 ** y)), which is still worse than x<<y, but not as much. And bitwise operations are faster on hardware, but that's not necessarily true for higher level languages that might be optimized away from them.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector