Go to main content

man pages section 3: DAX Library Functions

Exit Print View

Updated: Friday, August 13, 2021
 
 

dax_scan_range (3DAX)

Name

dax_scan_range - compare vector elements to a range of values

Synopsis

cc [ flag... ] file... -ldax [ library...]

#include <dax.h>

dax_result_t
dax_scan_range(dax_context_t *ctx, uint64_t flags,
    dax_vec_t *src, dax_vec_t *dst, dax_compare_t op,
    dax_int_t *lower, dax_int_t *upper);

Description

The dax_scan_range() function is similar to the dax_scan_value() function. But instead of comparing each input element to a single value, this function compares the input elements with a range of values defined by a lower and a upper value.

The op parameter can be set to any one of the following values:

DAX_GE_AND_LE

lower <= element && element <= upper

DAX_GE_AND_LT

lower <= element && element < upper

DAX_GT_AND_LE

lower < element && element <= upper

DAX_GT_AND_LT

lower < element && element < upper

DAX_NE_AND_NE

lower != element && element != upper

DAX_EQ_OR_EQ

lower == element || element == upper

DAX_LT_OR_GE

element < lower || element >= upper

DAX_LE_OR_GE

element <= lower || element >= upper

DAX_LT_OR_GT

element < lower || element > upper

DAX_LE_OR_GT

element <= lower || element > upper

Supported Flags

This function supports all the flags supported by the dax_scan_value() function.

Return Values

Same as dax_scan_value().

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Committed

See Also

dax_scan_value(3DAX)