Skip to content
Snippets Groups Projects
Commit 3d87b2b0 authored by Moe Jette's avatar Moe Jette
Browse files

Defined BitMapFit, an optimized bit map selection routine - Jette

parent f4117f82
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,16 @@ extern int BitMapCount(unsigned *BitMap);
*/
extern void BitMapFill(unsigned *BitMap);
/*
* BitMapFit - Identify the nodes which best fit the Request count
* Input: BitMap - The bit map to search
* Req_Nodes - Number of nodes required
* Consecutive - Nodes must be consecutive is 1, otherwise 0
* Output: BitMap - Nodes NOT required to satisfy the request are cleared, other left set
* Returns zero on success, EINVAL otherwise
*/
int BitMapFit(unsigned *BitMap, int Req_Nodes, int Consecutive);
/*
* BitMapIsSuper - Report if one bitmap's contents are a superset of another
* Input: BitMap1 and BitMap2 - The bitmaps to compare
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment