Function binSearchUI64#

Function Documentation#

uint64_t binSearchUI64(uint64_t elem, uint64_t *p_arr, uint64_t size, flag_t *flag)#

Function that searches the index of a given element in an ordered array. If the element is not in the array, the algorithm outputs a flag that tells the item must be inserted at the given position to preserve order.

Parameters:
  • elem[in] Element to be sought.

  • p_arr[in] Array (uint64_t).

  • size[in] Dimension of the array.