mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
glsl: Remove MSVC implementations of copysign and isnormal.
Non-Gallium parts of Mesa require MSVC 2013 which provides these.
This commit is contained in:
parent
02425d3ec2
commit
5c7fd67045
2 changed files with 2 additions and 26 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,12 +31,7 @@ template = """\
|
|||
#include "util/rounding.h" /* for _mesa_roundeven */
|
||||
#include "nir_constant_expressions.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)
|
||||
#if defined(__SUNPRO_CC)
|
||||
#include <ieeefp.h>
|
||||
static int isnormal(double x)
|
||||
{
|
||||
|
|
@ -44,13 +39,6 @@ static int isnormal(double x)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
static double copysign(double x, double y)
|
||||
{
|
||||
return _copysign(x, y);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Evaluate one component of packSnorm4x8.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue