Search Results

Search: Posts Made By: RudiC
2,009
Posted By RudiC
Checking for a set bit outside a "mask" value can...
Checking for a set bit outside a "mask" value can be easily done with "binary" operations; unfortunately, awk doesn't allow for this, afaik. bash can do it:
V1=$((2#1))
V8=$((2#01000))...
2,009
Posted By RudiC
Holding two arrays of ~2000 elements each in...
Holding two arrays of ~2000 elements each in memory shouldn't be too much a problem, but - without completely understanding your problem nor approach - there might be another approach that might...
2,009
Posted By RudiC
Please be aware that 2^5 = 32, not 25 (= 5^2). ...
Please be aware that 2^5 = 32, not 25 (= 5^2).
If your input has all bits of interest set, and the all zero variant is to be excluded, you'll have 2^n - 2 patterns to work on.
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy