summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_constant_expression.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-07-15 20:54:46 -0700
committerMatt Turner <[email protected]>2015-07-29 09:34:51 -0700
commit5c7fd670459ebff452adeec335c77854af903842 (patch)
tree680cd69be67c86bf5ce6cee39277f28b3babc6c9 /src/glsl/ir_constant_expression.cpp
parent02425d3ec2af6945a03583cadcaa5f3f330bbc0e (diff)
glsl: Remove MSVC implementations of copysign and isnormal.
Non-Gallium parts of Mesa require MSVC 2013 which provides these.
Diffstat (limited to 'src/glsl/ir_constant_expression.cpp')
-rw-r--r--src/glsl/ir_constant_expression.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index 171b8e95444..7a38fa42193 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -40,12 +40,7 @@
#include "glsl_types.h"
#include "program/hash_table.h"
-#if defined(_MSC_VER) && (_MSC_VER < 1800)
-static int isnormal(double x)
-{
- return _fpclass(x) == _FPCLASS_NN || _fpclass(x) == _FPCLASS_PN;
-}
-#elif defined(__SUNPRO_CC) && !defined(isnormal)
+#if defined(__SUNPRO_CC) && !defined(isnormal)
#include <ieeefp.h>
static int isnormal(double x)
{
@@ -53,13 +48,6 @@ static int isnormal(double x)
}
#endif
-#if defined(_MSC_VER)
-static double copysign(double x, double y)
-{
- return _copysign(x, y);
-}
-#endif
-
static float
dot_f(ir_constant *op0, ir_constant *op1)
{