Add FExactBitSet for checking bitmasks, but exact

This commit is contained in:
Alibek Omarov 2018-04-07 03:46:07 +03:00
parent cc0bf4bc43
commit 08d2309986

View file

@ -26,6 +26,11 @@ public class FWGSLib
private static final String TAG = "FWGSLib"; private static final String TAG = "FWGSLib";
static String externalFilesDir; static String externalFilesDir;
public static boolean FBitSet( final int bits, final int mask ) public static boolean FBitSet( final int bits, final int mask )
{
return ((bits & mask) != 0);
}
public static boolean FExactBitSet( final int bits, final int mask )
{ {
return ((bits & mask) == mask ); return ((bits & mask) == mask );
} }