~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.cc

  • Committer: Monty Taylor
  • Date: 2009-03-08 23:45:12 UTC
  • mto: (923.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 921.
  • Revision ID: mordred@inaugust.com-20090308234512-tqkygxtu1iaig23s
Removed C99 isnan() usage, which allows us to remove the util/math.{cc,h} workarounds. Yay for standards!

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
#include "drizzled/temporal.h" /* Needed in get_mm_leaf() for timestamp -> datetime comparisons */
115
115
 
116
116
#include <string>
117
 
#include CMATH_H
118
117
 
119
118
using namespace std;
120
 
#if defined(CMATH_NAMESPACE)
121
 
using namespace CMATH_NAMESPACE;
122
 
#endif
123
119
 
124
120
/*
125
121
  Convert double value to #rows. Currently this does floor(), and we
126
122
  might consider using round() instead.
127
123
*/
128
 
#define double2rows(x) ((ha_rows)(x))
 
124
static inline ha_rows double2rows(double x)
 
125
{
 
126
    return static_cast<ha_rows>(x);
 
127
}
129
128
 
130
129
static int sel_cmp(Field *f,unsigned char *a,unsigned char *b,uint8_t a_flag,uint8_t b_flag);
131
130