Bitwise operators Programming Software Development by imolorhe What are the possible uses of the bitwise operators. i.e. bitwise AND, bitwise OR, bitwise XOR, shift right, shift left and complement. Also, what are the applications of bitwise operators in everyday problem solving. Examples would be nice. Thanks in advance Re: Bitwise operators Programming Software Development by Clinton Portis … operations at the assembly level use bitwise operations. Here are just a few uses of bitwise operations that I can think of…. [*]some data compression techniques (I believe the Huffman algorithm) use bitwise operations. [/LIST] If you want a simple homework assignment, try… Bitwise and Logical Operators Programming Software Development by GeekTool …think i could not totally understand the diffefence between bitwise and logical operands. According to the book i … this is described as side effect. Also, in bitwise operands, both of the sides are evaluated. that …. However, aafter this point the book gives another example for bitwise or (|). (birthday == true) | (++age>= 65) // here,… Re: Bitwise operators Programming Software Development by imolorhe … when to use the logical operators, I read about the bitwise operators, but i saw a question that had to do… with on and off switches and the solution contained bitwise operators which, from what i have read about it, has… Re: Bitwise operators Programming Software Development by Fbody …. One common use is to use bit shifts and the bitwise logicals to condense several of these types of values into… Re: bitwise operations and masking Programming Software Development by Narue … the logical AND and logical OR rather than the bitwise AND and bitwise OR. The logical operators are && and ||, and… the bitwise operators are & and |. >It just wont work! Correct. … Re: Bitwise and Logical Operators Programming Software Development by TrustyTony … should have been and (&& only would work, not bitwise `&` here) to mean "if it is birthday, increase… Re: Bitwise and Logical Operators Programming Software Development by TrustyTony … the two plusses before the statement. If the operation is bitwise, the increment happens in every case and age is allways… Re: Bitwise and Logical Operators Programming Software Development by GeekTool … the two plusses before the statement. If the operation is bitwise, the increment happens in every case and age is allways… Bitwise Encoding Programming Software Development by llemes4011 … file, and (for simplicity's sake) I was considering using bitwise operators to pack it all into a single hex or… dec number. I've never user bitwise operators, as they really confuse me. If anyone has any… Bitwise operations and binary conversion Programming Software Development by hag++ … to converting between Dec/Bin/Hex as well as performing bitwise operations, I have never really been able to retain the… intuitive reading about converting between the three and also mastering bitwise operations. I know this is something that is covered in… Re: Bitwise operations and binary conversion Programming Software Development by embooglement … of: [URL="http://www.learncpp.com/cpp-tutorial/38-bitwise-operators/"]http://www.learncpp.com/cpp-tutorial/38…-bitwise-operators/[/URL] Hopefully this cleared things up, though admittedly the … Re: bitwise operations and masking Programming Software Development by Dave Sinkula [QUOTE=mr_mooz]So how can I get round that? when i use just & or | i get an error.[/QUOTE]You want to bitwise AND or bitwise OR two floating point values? The result may not be a number even if you were able to combine the bits of each object. bitwise operations and masking Programming Software Development by mr_mooz … a complete float. Any ideas on how to do the bitwise and with floats?? It just wont work! Cheers. bitwise operations in C Programming Software Development by YoTaMiX …<=7) . then to add up to the number in bitwise a 1 in the place of the index : if number… Re: bitwise operations in C Programming Software Development by Dave Sinkula [url=http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1042834793&id=1043284351]Bit shifting and bitwise operations[/url] Bitwise: Convert Primitives Programming Software Development by Cudmore … a short value to a 2-byte byte array using bitwise operators. [U]Let's test it out:[/U] 0 yields… Bitwise operators/ undefined and implementation-defined? Programming Software Development by JoBe … mind: 1) Exc_6_4) Wrote a table of values for the bitwise logical operators and was wondering if any of you could… Re: Bitwise: Convert Primitives Programming Software Development by Zork'nPalls The bitwise functions only operate on integers. When you wrote data[0] | … bitwise stuff Programming Software Development by slatk3y Hello, I have a question about bitwise operators, especially shifting. Suppose we have: [code=C++] #include <… Bitwise Operators and other things (need help) Programming Software Development by err1100 …'m still completely clueless. Also, I'm very new to bitwise operators and could use some explanation. Thanks, err1100 Re: Bitwise Operators and other things (need help) Programming Software Development by err1100 Ah. Thank you. The code makes a lot more sense now. Sorry for not clarifying this before, but I have one more question: This code was brought up in the context of returning all possible sub multi-sets of a list x, so what does the bitwise comparison have to do with that? Thanks so much for all of your prompt responses, err1100 bitwise operator Programming Computer Science by stephy1 let us take a=4 and b=8 what the bitwise operator do for a|b? Bitwise Conversion Programming Software Development by coding101 How can I convert an unsigned int to a signed int using only bitwise operators? Bitwise math Programming Software Development by skatamatic I am trying to remember a bit of bitwise math to deal with some CAN bus stuff in c#. … Re: Bitwise AND Programming Software Development by iamhe …, any nonzero value is true in a bool, so a bitwise AND wouldn't necessarily evaluate to true... and I shouldn…'t have tried using a bitwise op for boolean algebra. (Incidentally I settled on): running_result = running_result… Re: Bitwise AND Programming Software Development by Chainsaw … first statements uses logical and (&&) the second uses bitwise and (&), so you might try using '&&=' in… Re: Bitwise AND Programming Software Development by Dave Sinkula [QUOTE=Chainsaw]the first statements uses logical and (&&) the second uses bitwise and (&), so you might try using '[color=Red]&&=[/color]' in the second statement.[/QUOTE]There is no such critter: [font=Courier New]'[/font][font=Courier New][color=Red]&&=[/color][/font][font=Courier New]'[/font]. Re: Signed saturated addition with only bitwise operations Programming Software Development by rubberman Bitwise operations: multiply by 2 == <<1 divide by 2 == &… Re: Bitwise operators Programming Software Development by Dante Shamest … of the time you don't need to use the bitwise operations. The only time I've had to operate with… and transparency, I had to use masking and it involved bitwise knowledge.