_freebsd_build
authorDebian BOINC Maintainers <pkg-boinc-devel@lists.alioth.debian.org>
Tue, 28 Aug 2012 03:05:07 +0000 (03:05 +0000)
committerGuo Yixuan <culu.gyx@gmail.com>
Tue, 28 Aug 2012 03:05:07 +0000 (03:05 +0000)
===================================================================

Gbp-Pq: Name 101_freebsd_build.patch

client/vector/analyzeFuncs_sse.cpp

index f07d455b37f23ffc03691b970bd282566c3869a5..a6d5cd7672da25259c87f93fbe0e1a36b0182cc0 100644 (file)
@@ -32,6 +32,7 @@
 // This file is empty is __i386__ is not defined
 #include "sah_config.h"
 #include <vector>
+#include <cmath>
 
 #if defined(__i386__) || defined(__x86_64__) || defined(USE_SSE)
 
@@ -790,7 +791,7 @@ inline double fastfrac(double val, double roundVal) {
 #elif defined(_WIN64) || defined(SUPPORTS_ATTRIB_OPT)
     val -= ((val + roundVal) - roundVal);  // TODO: ADD CHECK THAT THIS WORKS
 #else
-    val -= floor(val + 0.5);
+    val -= std::floor(val + 0.5);
 #endif
     return val;
 }