mirror of
https://github.com/g-truc/glm.git
synced 2025-04-05 05:25:02 +00:00
Visual C++ Version...
This commit is contained in:
parent
79cec21c3a
commit
a432aec515
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue