PostGIS  2.5.7dev-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.

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 }
#define FLT_NEQ(x, y)
Definition: librtcore.h:2233
static struct quantile_llist_element * quantile_llist_search(struct quantile_llist_element *element, double needle)
struct quantile_llist_element * next
Definition: librtcore.h:2414

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

Referenced by rt_band_get_quantiles_stream().

Here is the caller graph for this function: