Testsuite outputs graphs using google api.

This commit is contained in:
castano
2010-11-08 19:03:20 +00:00
parent 5f845513ee
commit 1d4a2ea710
8 changed files with 416 additions and 226 deletions

View File

@ -200,27 +200,6 @@ namespace nv
return float(iround(f));
}
inline float quantizeCeil(float f, int bits)
{
nvDebugCheck(f >= 0.0f && f <= 1.0f);
float scale = float(1 << bits);
return ceilf(f * scale) / scale;
}
inline float quantizeRound(float f, int bits)
{
nvDebugCheck(f >= 0.0f && f <= 1.0f);
float scale = float(1 << bits);
return fround(f * scale) / scale;
}
inline float quantizeFloor(float f, int bits)
{
nvDebugCheck(f >= 0.0f && f <= 1.0f);
float scale = float(1 << bits);
return floor(f * scale) / scale;
}
} // nv
#endif // NV_MATH_H