Commit 1b2b8cbb authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Compiler should decide on inlining

parent 4769dc78
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment