Mesa (master): Revert "nv50/ra: `isinf() ` is in namespace `std` since C++11."

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Apr 19 10:32:39 UTC 2016


Module: Mesa
Branch: master
Commit: 121a0cedc80c5541d51599383486ba9a7397c6ce
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=121a0cedc80c5541d51599383486ba9a7397c6ce

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Tue Apr 19 11:22:45 2016 +0100

Revert "nv50/ra: `isinf()` is in namespace `std` since C++11."

This reverts commit f525db6358fbaa7b4296d2e6484e0b1ae703ac78.

It was superseeded by commit 649704f1f7c9e1d0990d34a76154b2eb656bee42.

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
index 1b595ae..500ab89 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
@@ -1327,11 +1327,7 @@ GCRA::simplify()
                bestScore = score;
             }
          }
-#if __cplusplus >= 201103L
-         if (std::isinf(bestScore)) {
-#else
          if (isinf(bestScore)) {
-#endif
             ERROR("no viable spill candidates left\n");
             break;
          }




More information about the mesa-commit mailing list