¡@

Home 

c++ Programming Glossary: masks

Deterministic builds under Windows

http://stackoverflow.com/questions/1180852/deterministic-builds-under-windows

a special compare routine for Win32 executable files that masks out various build time stamp fields in both files when performing..

Using enum in loops and value consistency

http://stackoverflow.com/questions/13971544/using-enum-in-loops-and-value-consistency

the extended range enum are often used to define bit masks enum X a 0x01 b 0x02 c 0x04 all a b c none 0 X operator X lhs.. I would only use it as a real enumerated type or for bit masks and only for bit masks because it is such a widely established.. a real enumerated type or for bit masks and only for bit masks because it is such a widely established idiom . share improve..

Fastest way to scan for bit pattern in a stream of bits

http://stackoverflow.com/questions/1572290/fastest-way-to-scan-for-bit-pattern-in-a-stream-of-bits

short pattern 1234 unsigned int preShifts 16 unsigned int masks 16 int i for i 0 i 16 i preShifts i unsigned int pattern i gets.. i preShifts i unsigned int pattern i gets promoted to int masks 16 unsigned int 0xffff i and then for every unsigned short you.. 16 curWord int i 0 for i 0 i 16 i if combinedWords masks i preShifsts i numHits return numHits edit do note that this..

How to obtain all subsequence combinations of a String (in Java, or C++ etc)

http://stackoverflow.com/questions/1617699/how-to-obtain-all-subsequence-combinations-of-a-string-in-java-or-c-etc

is a basic implementation in python def powerset s n len s masks 1 j for j in xrange n for i in xrange 2 n yield s j for j in.. xrange n for i in xrange 2 n yield s j for j in range n if masks j i if __name__ '__main__' for elem in powerset 1 2 3 4 5 print.. adapted to produce string output def powerset s n len s masks 1 j for j in xrange n for i in xrange 2 n yield .join str s..

Is there a standard date/time class in C++?

http://stackoverflow.com/questions/1650715/is-there-a-standard-date-time-class-in-c

to do so as it saves you from a lot of nasty issues as it masks most OS dependent things like threading for example. Many things..

How can I use a std::valarray to store/manipulate a contiguous 2D array?

http://stackoverflow.com/questions/2187648/how-can-i-use-a-stdvalarray-to-store-manipulate-a-contiguous-2d-array

many interesting ways to access elements via slices masks multidimentional slices or an indirection table. See std slice_array..

Getting the number of trailing 1 bits

http://stackoverflow.com/questions/2380728/getting-the-number-of-trailing-1-bits

bit numbers at the end b will contain the count of 1's the masks adding and shifting count the 1's . Unless I goofed of course...

fastest (low latency) method for Inter Process Communication between Java and C/C++

http://stackoverflow.com/questions/2635272/fastest-low-latency-method-for-inter-process-communication-between-java-and-c

Named pipes 15 microseconds Now explicitly specifying core masks like taskset 1 java Srv or taskset 2 java Cli TCP same cores..

When and why will an OS initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?

http://stackoverflow.com/questions/370195/when-and-why-will-an-os-initialise-memory-to-0xcd-0xdd-etc-on-malloc-free-new

course it is bad if the constant filling of weird values masks a bug. Mathematically odd numbers are good for finding bugs..

When is it worthwhile to use bit fields?

http://stackoverflow.com/questions/4240974/when-is-it-worthwhile-to-use-bit-fields

is to use direct bitwise manipulation using shifts and bit masks. If you use bit fields for anything other than assembling or..