464602e87a
texture manipulation tools, designed to be integrated in game tools and asset conditioning pipelines. The primary features of the library are mipmap and normal map generation, format conversion and DXT compression. DXT compression is based on Simon Brown's squish library. The library also contains an alternative GPU-accelerated compressor that uses CUDA and is one order of magnitude faster. WWW: http://code.google.com/p/nvidia-texture-tools/
20 lines
488 B
C
20 lines
488 B
C
--- src/nvmath/nvmath.h.orig 2008-12-01 11:04:28.000000000 +0300
|
|
+++ src/nvmath/nvmath.h 2009-03-06 22:38:28.000000000 +0300
|
|
@@ -97,7 +97,7 @@
|
|
{
|
|
#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);
|
|
@@ -112,7 +112,7 @@
|
|
{
|
|
#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);
|