Compiler should decide on inlining

This commit is contained in:
Pieter Noordhuis 2011-01-13 16:06:03 +01:00
parent 22b9bf1594
commit df278b8b0b

View File

@ -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);
} }