From dee4724476f8fa8f95ede703ad46e8eedb2392a7 Mon Sep 17 00:00:00 2001 From: Debian BOINC Maintainers Date: Tue, 28 Aug 2012 03:05:07 +0000 Subject: [PATCH] _freebsd_build =================================================================== Gbp-Pq: Name 101_freebsd_build.patch --- client/vector/analyzeFuncs_sse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/vector/analyzeFuncs_sse.cpp b/client/vector/analyzeFuncs_sse.cpp index f07d455..a6d5cd7 100644 --- a/client/vector/analyzeFuncs_sse.cpp +++ b/client/vector/analyzeFuncs_sse.cpp @@ -32,6 +32,7 @@ // This file is empty is __i386__ is not defined #include "sah_config.h" #include +#include #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; } -- 2.30.2