Top "Bitmask" questions

Bitmask is a technique used to isolate specific bits in a byte in order to work only on the desired ones.

How to implement a bitmask in php?

I'm not sure if bitmask is the correct term. Let me explain: In php, the error_reporting function can be …

php bitmask
if (mask & VALUE) or if ((mask & VALUE) == VALUE)?

You're probably familiar with the enum bitmask scheme, like: enum Flags { FLAG1 = 0x1, FLAG2 = 0x2, FLAG3 = 0x4, FLAG4 = 0x8, NO_…

c++ bitmask
Declaring and checking/comparing (bitmask-)enums in Objective-C

You know in Cocoa there is this thing, for example you can create a UIView and do: view.autoresizingMask = UIViewAutoresizingFlexibleWidth | …

objective-c c cocoa enums bitmask
How and Where to use Bit Mask in java

Please explain to me how and where to use Bit Mask in java: I don't understand the code below: int …

java bitmask
Java Working with bits

Let me start by saying I have never really worked with bits before in programming. I have an object that …

java bits bitmask
C++11 standard conformant bitmasks using enum class

Can you implement standard conformant (as described in 17.5.2.1.3 of the n3242 draft) type safe bitmasks using enum class? The way …

c++ c++11 bit-fields bitmask enum-class
bitmask question?

I have the follow: public static final int LIMIT_ONE = 1; public static final int TRADEABLE = (1 << 1); public static final …

java bitmask
What does (x ^ 0x1) != 0 mean?

I came across the following code snippet if( 0 != ( x ^ 0x1 ) ) encode( x, m ); What does x ^ 0x1 mean? Is this …

c++ c bit-manipulation bitmask
Is there way to match IP with IP+CIDR straight from SELECT query?

Something like SELECT COUNT(*) AS c FROM BANS WHERE typeid=6 AND (SELECT ipaddr,cidr FROM BANS) MATCH AGAINST 'this_ip'; …

mysql ip mask bitmask cidr
Bitmask switch statement

I have this code in a section of my project: enum myEnum { invalid = -1, val1 = 1, val2 = 2, val3 = 4 }; int bitmask = val1 | …

c++ switch-statement bitwise-operators bitmask bit-masks