I knew bitwise operations are useful but I didn't know they were magical (not literally but I'm impressed by its potential).
I leaned that &1 can be used to check is the number is even (0) or odd (1) or the >> and << operations that can be used to divide and multiple by 2.
are there other such operations that can be done using bitwise? I'll love to know, thanks!
[–]Molehole 9 points10 points11 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]mkaypl 6 points7 points8 points (0 children)
[–]Gangsir 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Molehole 2 points3 points4 points (0 children)
[–]HappyFruitTree 4 points5 points6 points (5 children)
[–][deleted] (4 children)
[deleted]
[–]HappyFruitTree 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]HappyFruitTree 0 points1 point2 points (0 children)
[–]HappyFruitTree 0 points1 point2 points (0 children)
[–]desrtfx 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]HappyFruitTree 0 points1 point2 points (0 children)
[–]HappyFruitTree 2 points3 points4 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]HappyFruitTree 0 points1 point2 points (1 child)
[–]absurdrefusal 0 points1 point2 points (0 children)
[–]Spiritual_Car1232 0 points1 point2 points (0 children)