inline float radians (float f) { return deFloatRadians(f); }
inline float degrees (float f) { return deFloatDegrees(f); }
-inline float exp2 (float f) { return deFloatExp2(f); }
-inline float log2 (float f) { return deFloatLog2(f); }
inline float inverseSqrt (float f) { return deFloatRsq(f); }
inline float sign (float f) { return (f < 0.0f) ? -1.0f : ((f > 0.0f) ? +1.0f : 0.0f); }
inline float fract (float f) { return f - deFloatFloor(f); }
return eta * i - (eta * cosAngle + deFloatSqrt(k)) * n;
}
-inline float asinh (float a) { return deFloatAsinh(a); }
-inline float acosh (float a) { return deFloatAcosh(a); }
-inline float atanh (float a) { return deFloatAtanh(a); }
-
template<typename T> inline bool lessThan (T a, T b) { return (a < b); }
template<typename T> inline bool lessThanEqual (T a, T b) { return (a <= b); }
template<typename T> inline bool greaterThan (T a, T b) { return (a > b); }
inline int chopToInt (float a) { return deChopFloatToInt32(a); }
-inline float trunc (float a) { return (float)chopToInt(a); }
-
inline float roundToEven (float a)
{
float q = deFloatFrac(a);
TCU_DECLARE_VECTOR_UNARY_FUNC(abs, de::abs)
TCU_DECLARE_VECTOR_UNARY_FUNC(sign, deFloatSign)
TCU_DECLARE_VECTOR_UNARY_FUNC(floor, deFloatFloor)
-TCU_DECLARE_VECTOR_UNARY_FUNC(trunc, trunc)
+TCU_DECLARE_VECTOR_UNARY_FUNC(trunc, deFloatTrunc)
TCU_DECLARE_VECTOR_UNARY_FUNC(roundToEven, roundToEven)
TCU_DECLARE_VECTOR_UNARY_FUNC(ceil, deFloatCeil)
TCU_DECLARE_VECTOR_UNARY_FUNC(fract, deFloatFrac)
if (texObj->getType() == Texture::TYPE_2D_ARRAY || texObj->getType() == Texture::TYPE_CUBE_MAP_ARRAY)
{
RC_IF_ERROR((layer < 0) || (layer >= GL_MAX_ARRAY_TEXTURE_LAYERS), GL_INVALID_VALUE, RC_RET_VOID);
- RC_IF_ERROR((level < 0) || (level > tcu::log2(GL_MAX_TEXTURE_SIZE)), GL_INVALID_VALUE, RC_RET_VOID);
+ RC_IF_ERROR((level < 0) || (level > deFloatLog2(GL_MAX_TEXTURE_SIZE)), GL_INVALID_VALUE, RC_RET_VOID);
}
else if (texObj->getType() == Texture::TYPE_3D)
{
- RC_IF_ERROR((layer < 0) || (layer >= GL_MAX_3D_TEXTURE_SIZE), GL_INVALID_VALUE, RC_RET_VOID);
- RC_IF_ERROR((level < 0) || (level > tcu::log2(GL_MAX_3D_TEXTURE_SIZE)), GL_INVALID_VALUE, RC_RET_VOID);
+ RC_IF_ERROR((layer < 0) || (layer >= GL_MAX_3D_TEXTURE_SIZE), GL_INVALID_VALUE, RC_RET_VOID);
+ RC_IF_ERROR((level < 0) || (level > deFloatLog2(GL_MAX_3D_TEXTURE_SIZE)), GL_INVALID_VALUE, RC_RET_VOID);
}
}