PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ quantile_llist_search()

static struct quantile_llist_element* quantile_llist_search ( struct quantile_llist_element element,
double  needle 
)
static

Definition at line 780 of file rt_statistics.c.

References FLT_NEQ, quantile_llist_element::next, and quantile_llist_element::value.

Referenced by rt_band_get_quantiles_stream().

783  {
784  if (NULL == element)
785  return NULL;
786  else if (FLT_NEQ(needle, element->value)) {
787  if (NULL != element->next)
788  return quantile_llist_search(element->next, needle);
789  else
790  return NULL;
791  }
792  else
793  return element;
794 }
struct quantile_llist_element * next
Definition: librtcore.h:2365
#define FLT_NEQ(x, y)
Definition: librtcore.h:2184
static struct quantile_llist_element * quantile_llist_search(struct quantile_llist_element *element, double needle)
Here is the caller graph for this function: