All Questions
2 questions
1
vote
1
answer
186
views
Using JavaScript-bitwise AND and -bitwise NOT for setting a number to 0
Obviously is the XOR-operator is used in low-level programming-languages used a lot for setting a value back to all bits 0.
For example:
11010 ^ 11010 => 00000
Brought my teacher to figuring a out ...
24
votes
3
answers
8k
views
Converting an IP
I've written a DNS tool in Node and would like to know if there's a better and more efficient way of handling the conversion from an IP to a long. I'm not too good at bitwise just yet and would like ...