Bloom filter: remove double-testing introduced in dispatch.

This commit is contained in:
Erik Søe Sørensen 2012-09-25 14:51:45 +02:00
parent a475b5f5be
commit d727be2fa7

View file

@ -148,12 +148,9 @@ masked_pair(Mask, X, Y) -> {X band Mask, Y band Mask}.
all_set(_Mask, _I1, _I, []) -> true;
all_set(Mask, I1, I, [H|T]) ->
case element(1, H) of
array ->
case bitmask_get(I, H) of
true -> all_set(Mask, I1, (I+I1) band Mask, T);
false -> false
end
case bitmask_get(I, H) of
true -> all_set(Mask, I1, (I+I1) band Mask, T);
false -> false
end.
%% Adds element to set