Remove support for using SVML for math lib routines.

This path was poorly maintained and wasn't actually available on most
targets.
This commit is contained in:
Matt Pharr
2013-07-18 09:24:23 -07:00
parent d3c567503b
commit d9c38b5c1f
16 changed files with 18 additions and 556 deletions

View File

@@ -2159,10 +2159,7 @@ static inline uniform float frexp(uniform float x, uniform int * uniform pw2) {
__declspec(safe)
static inline float sin(float x_full) {
if (__math_lib == __math_lib_svml) {
return __svml_sin(x_full);
}
else if (__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
uniform float r = __stdlib_sinf(extract(x_full, i));
@@ -2221,8 +2218,7 @@ static inline float sin(float x_full) {
__declspec(safe)
static inline uniform float sin(uniform float x_full) {
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
return __stdlib_sinf(x_full);
}
else if (__math_lib == __math_lib_ispc ||
@@ -2293,8 +2289,7 @@ static inline float asin(float x) {
bool isnan = (x > 1);
float v;
if (__math_lib == __math_lib_svml ||
__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
uniform float r = __stdlib_asinf(extract(x, i));
@@ -2350,8 +2345,7 @@ static inline uniform float asin(uniform float x) {
uniform bool isnan = (x > 1);
uniform float v;
if (__math_lib == __math_lib_svml ||
__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
return __stdlib_asinf(x);
}
else if (__math_lib == __math_lib_ispc)
@@ -2396,10 +2390,7 @@ static inline uniform float asin(uniform float x) {
__declspec(safe)
static inline float cos(float x_full) {
if (__math_lib == __math_lib_svml) {
return __svml_cos(x_full);
}
else if (__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
uniform float r = __stdlib_cosf(extract(x_full, i));
@@ -2457,8 +2448,7 @@ static inline float cos(float x_full) {
__declspec(safe)
static inline uniform float cos(uniform float x_full) {
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
return __stdlib_cosf(x_full);
}
else if (__math_lib == __math_lib_ispc ||
@@ -2535,10 +2525,7 @@ static inline uniform float acos(uniform float v) {
__declspec(safe)
static inline void sincos(float x_full, varying float * uniform sin_result,
varying float * uniform cos_result) {
if (__math_lib == __math_lib_svml) {
__svml_sincos(x_full, sin_result, cos_result);
}
else if (__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
foreach_active (i) {
uniform float s, c;
__stdlib_sincosf(extract(x_full, i), &s, &c);
@@ -2605,8 +2592,7 @@ static inline void sincos(float x_full, varying float * uniform sin_result,
__declspec(safe)
static inline void sincos(uniform float x_full, uniform float * uniform sin_result,
uniform float * uniform cos_result) {
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
__stdlib_sincosf(x_full, sin_result, cos_result);
}
else if (__math_lib == __math_lib_ispc ||
@@ -2667,10 +2653,7 @@ static inline void sincos(uniform float x_full, uniform float * uniform sin_resu
__declspec(safe)
static inline float tan(float x_full) {
if (__math_lib == __math_lib_svml) {
return __svml_tan(x_full);
}
else if (__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
uniform float r = __stdlib_tanf(extract(x_full, i));
@@ -2746,8 +2729,7 @@ static inline float tan(float x_full) {
__declspec(safe)
static inline uniform float tan(uniform float x_full) {
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
return __stdlib_tanf(x_full);
}
else if (__math_lib == __math_lib_ispc ||
@@ -2818,10 +2800,7 @@ static inline uniform float tan(uniform float x_full) {
__declspec(safe)
static inline float atan(float x_full) {
if (__math_lib == __math_lib_svml) {
return __svml_atan(x_full);
}
else if (__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
uniform float r = __stdlib_atanf(extract(x_full, i));
@@ -2869,8 +2848,7 @@ static inline float atan(float x_full) {
__declspec(safe)
static inline uniform float atan(uniform float x_full) {
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
return __stdlib_atanf(x_full);
}
else if (__math_lib == __math_lib_ispc ||
@@ -2913,10 +2891,7 @@ static inline uniform float atan(uniform float x_full) {
__declspec(safe)
static inline float atan2(float y, float x) {
if (__math_lib == __math_lib_svml) {
return __svml_atan2(y, x);
}
else if (__math_lib == __math_lib_system) {
if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
uniform float r = __stdlib_atan2f(extract(y, i), extract(x, i));
@@ -2952,8 +2927,7 @@ static inline float atan2(float y, float x) {
__declspec(safe)
static inline uniform float atan2(uniform float y, uniform float x) {
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
return __stdlib_atan2f(y, x);
}
else if (__math_lib == __math_lib_ispc ||
@@ -2976,9 +2950,6 @@ static inline float exp(float x_full) {
if (__have_native_transcendentals) {
return __exp_varying_float(x_full);
}
else if (__math_lib == __math_lib_svml) {
return __svml_exp(x_full);
}
else if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
@@ -3058,8 +3029,7 @@ static inline uniform float exp(uniform float x_full) {
if (__have_native_transcendentals) {
return __exp_uniform_float(x_full);
}
else if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
else if (__math_lib == __math_lib_system) {
return __stdlib_expf(x_full);
}
else if (__math_lib == __math_lib_ispc_fast) {
@@ -3183,9 +3153,6 @@ static inline float log(float x_full) {
if (__have_native_transcendentals) {
return __log_varying_float(x_full);
}
else if (__math_lib == __math_lib_svml) {
return __svml_log(x_full);
}
else if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
@@ -3274,8 +3241,7 @@ static inline uniform float log(uniform float x_full) {
if (__have_native_transcendentals) {
return __log_uniform_float(x_full);
}
else if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
else if (__math_lib == __math_lib_system) {
return __stdlib_logf(x_full);
}
else if (__math_lib == __math_lib_ispc_fast) {
@@ -3358,9 +3324,6 @@ static inline float pow(float a, float b) {
if (__have_native_transcendentals) {
return __pow_varying_float(a, b);
}
else if (__math_lib == __math_lib_svml) {
return __svml_pow(a, b);
}
else if (__math_lib == __math_lib_system) {
float ret;
foreach_active (i) {
@@ -3380,8 +3343,7 @@ static inline uniform float pow(uniform float a, uniform float b) {
if (__have_native_transcendentals) {
return __pow_uniform_float(a, b);
}
if (__math_lib == __math_lib_system ||
__math_lib == __math_lib_svml) {
if (__math_lib == __math_lib_system) {
return __stdlib_powf(a, b);
}
else if (__math_lib == __math_lib_ispc ||