mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 03:30:32 -04:00
- Update WWW [1] - Regenerate patches - Add LICENSE PR: 208858 [1] Submitted by: fcsk.aim@gmail.com [1]
20 lines
511 B
C
20 lines
511 B
C
--- src/nvmath/nvmath.h.orig 2010-05-15 09:12:05 UTC
|
|
+++ src/nvmath/nvmath.h
|
|
@@ -115,7 +115,7 @@ inline bool isFinite(const float f)
|
|
{
|
|
#if NV_OS_WIN32
|
|
return _finite(f) != 0;
|
|
-#elif NV_OS_DARWIN
|
|
+#elif NV_OS_DARWIN || NV_OS_FREEBSD
|
|
return isfinite(f);
|
|
#elif NV_OS_LINUX
|
|
return finitef(f);
|
|
@@ -130,7 +130,7 @@ inline bool isNan(const float f)
|
|
{
|
|
#if NV_OS_WIN32
|
|
return _isnan(f) != 0;
|
|
-#elif NV_OS_DARWIN
|
|
+#elif NV_OS_DARWIN || NV_OS_FREEBSD
|
|
return isnan(f);
|
|
#elif NV_OS_LINUX
|
|
return isnanf(f);
|