Add exports required by kn_index_tictactree

This commit is contained in:
Martin Sumner 2018-03-28 14:01:40 +01:00
parent e0d63209a1
commit c8552d5bd5

View file

@ -71,7 +71,8 @@
keyto_segment32/1, keyto_segment32/1,
keyto_segment48/1, keyto_segment48/1,
generate_segmentfilter_list/2, generate_segmentfilter_list/2,
merge_binaries/2 merge_binaries/2,
join_segment/2
]). ]).
@ -372,6 +373,12 @@ generate_segmentfilter_list(SegmentList, Size) ->
SegmentList SegmentList
end. end.
-spec join_segment(integer(), integer()) -> integer().
%% @doc
%% Generate a segment ID for the Brnahc and Leaf ID co-ordinates
join_segment(BranchID, LeafID) ->
BranchID bsl ?L2_BITSIZE + LeafID.
%%%============================================================================ %%%============================================================================
%%% Internal functions %%% Internal functions
%%%============================================================================ %%%============================================================================