mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-13 16:41:30 +08:00
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:
parent
c6eb9ef60e
commit
8302ce6cdc
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user