C Configuration Space and Tuning Library (CCS)
Loading...
Searching...
No Matches
interval.h
Go to the documentation of this file.
1#ifndef _CCS_INTERVAL_H
2#define _CCS_INTERVAL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
28
33
45extern ccs_result_t
47
62extern ccs_result_t
64 ccs_interval_t *interval1,
65 ccs_interval_t *interval2,
66 ccs_interval_t *interval_res);
67
82extern ccs_result_t
84 ccs_interval_t *interval1,
85 ccs_interval_t *interval2,
86 ccs_interval_t *interval_res);
87
102extern ccs_result_t
104 ccs_interval_t *interval1,
105 ccs_interval_t *interval2,
106 ccs_bool_t *equal_res);
107
119extern ccs_bool_t
121#ifdef __cplusplus
122}
123#endif
124
125#endif //_CCS_INTERVAL_H
int32_t ccs_bool_t
A CCS boolean type.
Definition base.h:37
enum ccs_numeric_type_e ccs_numeric_type_t
A commodity type to represent CCS numeric types.
Definition base.h:384
enum ccs_result_e ccs_result_t
A commodity type to represent CCS errors and returned by most functions.
Definition base.h:247
ccs_result_t ccs_interval_empty(ccs_interval_t *interval, ccs_bool_t *empty_ret)
Check if an interval is empty.
ccs_result_t ccs_interval_intersect(ccs_interval_t *interval1, ccs_interval_t *interval2, ccs_interval_t *interval_res)
Compute the intersection of two intervals.
ccs_bool_t ccs_interval_include(ccs_interval_t *interval, ccs_numeric_t value)
Test the inclusion of a numeric value into an interval.
ccs_result_t ccs_interval_union(ccs_interval_t *interval1, ccs_interval_t *interval2, ccs_interval_t *interval_res)
Compute the union of two intervals.
ccs_result_t ccs_interval_equal(ccs_interval_t *interval1, ccs_interval_t *interval2, ccs_bool_t *equal_res)
Test the equality of two intervals.
A structure defining an interval over numeric values.
Definition interval.h:16
ccs_numeric_t lower
The lower bound of the interval.
Definition interval.h:20
ccs_bool_t lower_included
Is the lower bound included in the interval.
Definition interval.h:24
ccs_bool_t upper_included
Is the upper bound included in the interval.
Definition interval.h:26
ccs_numeric_type_t type
The type of numeric value.
Definition interval.h:18
ccs_numeric_t upper
The upper bound of the interval.
Definition interval.h:22
A union that can contain either a ccs_int_t or a ccs_float_t.
Definition base.h:394