Visual C++ Version...

This commit is contained in:
Christophe Riccio 2011-05-03 00:20:09 +01:00
parent 79cec21c3a
commit a432aec515
2 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ namespace ulp
std::size_t Count = 0;
float TempA(a);
float TempB(b);
while((TempA = nextafterf(TempA, TempB)) != TempB)
while((TempA = _nextafterf(TempA, TempB)) != TempB)
++Count;
return Count;
}
@ -36,7 +36,7 @@ namespace ulp
{
std::size_t Count = 0;
float Temp = a;
while((Temp = nextafterf(Temp, b)) != b)
while((Temp = _nextafterf(Temp, b)) != b)
{
std::cout << Temp << " " << b << std::endl;
++Count;
@ -52,7 +52,7 @@ namespace ulp
{
std::size_t Count = 0;
double Temp = a;
while((Temp = nextafter(Temp, b)) != b)
while((Temp = _nextafter(Temp, b)) != b)
{
std::cout << Temp << " " << b << std::endl;
++Count;

View file

@ -13,8 +13,8 @@
int test_ulp_float()
{
double Temp = nextafter(0.02, 0.01);
std::cout << Temp << " 0.01, 0.02" << std::endl;
double Temp = _nextafter(0.01, 0.011);
std::cout << Temp << " 0.01, 0.011" << std::endl;
std::size_t A = glm::ulp(0.01, 0.02);
std::size_t B = glm::ulp(glm::vec2(0.01), glm::vec2(0.02));