skip inline function optimizations for windows when compiling with mingw

This commit is contained in:
Axel Kohlmeyer 2019-04-01 17:23:27 -04:00
parent b7aecc0d59
commit d5aa60dbfe
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 4 additions and 5 deletions

View File

@ -24,14 +24,13 @@
inline double pow(int i, int j){
return pow((double)i,j);
}
#endif
inline double sqrt(int i){
return sqrt((double) i);
}
inline double fabs(int i){
return fabs((double) i);
}
inline double sqrt(int i){
return sqrt((double) i);
}
#endif
inline double trunc(double x) {
return x > 0 ? floor(x) : ceil(x);