mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +00:00
Compiler should decide on inlining
This commit is contained in:
parent
4769dc7826
commit
1b2b8cbbde
@ -180,15 +180,15 @@ typedef struct {
|
||||
int minex, maxex; /* are min or max exclusive? */
|
||||
} 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);
|
||||
}
|
||||
|
||||
static inline int zslValueInMaxRange(double value, zrangespec *spec) {
|
||||
static int zslValueInMaxRange(double value, zrangespec *spec) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user