PostGIS  2.1.10dev-r@@SVN_REVISION@@
static struct quantile_llist_element* quantile_llist_search ( struct quantile_llist_element element,
double  needle 
)
static

Definition at line 3927 of file rt_api.c.

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

Referenced by rt_band_get_quantiles_stream().

3930  {
3931  if (NULL == element)
3932  return NULL;
3933  else if (FLT_NEQ(needle, element->value)) {
3934  if (NULL != element->next)
3935  return quantile_llist_search(element->next, needle);
3936  else
3937  return NULL;
3938  }
3939  else
3940  return element;
3941 }
#define FLT_NEQ(x, y)
Definition: rt_api.h:2158
struct quantile_llist_element * next
Definition: rt_api.h:2331
static struct quantile_llist_element * quantile_llist_search(struct quantile_llist_element *element, double needle)
Definition: rt_api.c:3927

Here is the caller graph for this function: