mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Compiler should decide on inlining
This commit is contained in:
parent
22b9bf1594
commit
df278b8b0b
@ -180,15 +180,15 @@ typedef struct {
|
|||||||
int minex, maxex; /* are min or max exclusive? */
|
int minex, maxex; /* are min or max exclusive? */
|
||||||
} zrangespec;
|
} zrangespec;
|
||||||
|
|
||||||
static inline int zslValueInMinRange(double value, zrangespec *spec) {
|
static int zslValueInMinRange(double value, zrangespec *spec) {
|
||||||
return spec->minex ? (value > spec->min) : (value >= spec->min);
|
return spec->minex ? (value > spec->min) : (value >= spec->min);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int zslValueInMaxRange(double value, zrangespec *spec) {
|
static int zslValueInMaxRange(double value, zrangespec *spec) {
|
||||||
return spec->maxex ? (value < spec->max) : (value <= spec->max);
|
return spec->maxex ? (value < spec->max) : (value <= spec->max);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int zslValueInRange(double value, zrangespec *spec) {
|
static int zslValueInRange(double value, zrangespec *spec) {
|
||||||
return zslValueInMinRange(value,spec) && zslValueInMaxRange(value,spec);
|
return zslValueInMinRange(value,spec) && zslValueInMaxRange(value,spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user