Commit df278b8b authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Compiler should decide on inlining

parent 22b9bf15
...@@ -180,15 +180,15 @@ typedef struct { ...@@ -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);
} }
......
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