remove the special version of ei_pow(int,int) for gcc >= 4.3 that was stupid

because gcc convert it to a pow(double,double)
This commit is contained in:
Gael Guennebaud 2009-07-16 09:10:34 +02:00
parent c6eb9ef60e
commit 8302ce6cdc
2 changed files with 1 additions and 6 deletions

View File

@ -61,12 +61,7 @@ inline int ei_exp(int) { ei_assert(false); return 0; }
inline int ei_log(int) { ei_assert(false); return 0; } inline int ei_log(int) { ei_assert(false); return 0; }
inline int ei_sin(int) { ei_assert(false); return 0; } inline int ei_sin(int) { ei_assert(false); return 0; }
inline int ei_cos(int) { ei_assert(false); return 0; } inline int ei_cos(int) { ei_assert(false); return 0; }
#if EIGEN_GNUC_AT_LEAST(4,3)
inline int ei_pow(int x, int y) { return int(std::pow(x, y)); }
#else
inline int ei_pow(int x, int y) { return int(std::pow(double(x), y)); } inline int ei_pow(int x, int y) { return int(std::pow(double(x), y)); }
#endif
template<> inline int ei_random(int a, int b) template<> inline int ei_random(int a, int b)
{ {