All Questions
Tagged with bitwise arithmetic
3 questions
10
votes
32
answers
2k
views
Do two numbers contain unique powers of 2
Break two numbers up into their powers of 2, if they share any, return a falsey value. Otherwise, return a truthy value.
If one input is 0, the answer will always ...
17
votes
5
answers
789
views
Unwise bit operations
I like to golf in dc, but I'm sometimes frustrated because dc doesn't have bitwise operations.
Challenge
Provide four named ...
12
votes
6
answers
4k
views
Implement an 8 bit adder
The Challenge
Implement a function which accepts two integers whose values range from 0 - 255 and returns the sum of those integers mod 256. You may only use bitwise negation (~), bitwise or (|), bit ...