bit-manipulation
Is bit twiddling a good test for embedded engineer [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-04-07 23:26 分类:问答Bit wise operations in C
I\'m working on a C programming assignment, I need to simulate the operation of a 3 bit decoder. My compiler is complaining, this Wikipedia article gives开发者_开发问答 a list of C operators, but my c[详细]
2023-04-07 22:44 分类:问答how to find users roles stored using bitwise technique in sql?
I would like to run a simple query to get all users of a particular role, the problem is user roles are开发者_JS百科 stored in bitwise numbers using power of 2 pattern.[详细]
2023-04-07 12:04 分类:问答Converting from sign-magnitude to two's complement
For this assignment I can only use basic bitwise o开发者_如何学JAVAperators and no control structures, so I\'ve come up with this code so far to convert sign-magnitude to two\'s complement.[详细]
2023-04-07 07:25 分类:问答Bit parity code for odd number of bits
I am trying to find the parity of a bitstring so that it returns 1 if x has an odd # of 0\'s. I can only use basic bitwise operations and what I have so far passes most of the tests, but I\'m wonderin[详细]
2023-04-07 05:15 分类:问答what is the meaning of the following expression in c++
What is the meaning of the following expression in c++? (variable1 | (variable2 << 8)) What is the meaning of it开发者_运维问答? And what does it represent?It concatenates the two variables.[详细]
2023-04-06 17:29 分类:问答Perl bitwise AND giving me funky results
I am writing a little perl script to compare two IP addresses using perls bitwise AND operator. but I am getting some really funky results. I\'m new to perl so maybe someone can give me a few pointers[详细]
2023-04-06 13:10 分类:问答Bit shift in Java
May be I am too tired. Why dont\'t the following display the same value? int x = 42405; System.out.println(x << 8);[详细]
2023-04-06 13:00 分类:问答Most efficient way to find 1s in a binary word?
I am unsure what something like this would be called, (hence the clumsy title) but I need something like this for something I\'m working on.I can\'t describe it well in words, but I hope this drawing[详细]
2023-04-06 12:11 分类:问答How to compare two bit values in C?
I\'ve been dabbling around a bit with C and I find that being able to directly manipulate bits is fascinating and powerful (and dangerous I suppose). I was curious as to what the best way would be to[详细]
2023-04-06 04:58 分类:问答