Skip to content

Commit

Permalink
Remove references to INFINITY
Browse files Browse the repository at this point in the history
Don't need to block compilation now, should work with any compiler
  • Loading branch information
Andne committed Apr 29, 2016
1 parent 9500d53 commit bf58b42
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/CppUTestExt/IEEE754PluginTest_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

#include <CppUTest/CppUTestConfig.h>

#ifdef CPPUTEST_HAVE_FENV

#include "IEEE754PluginTest_c.h"
#include <math.h>

Expand All @@ -42,14 +40,14 @@ void set_divisionbyzero_c(void)

void set_overflow_c(void)
{
f = 1000.0f;
while (f < INFINITY) f *= f;
f = 1e38f;
f *= f;
}

void set_underflow_c(void)
{
f = 0.01f;
while (f > 0.0f) f *= f;
f = 1e-38f;
f *= f;
}

void set_invalid_c(void)
Expand All @@ -75,5 +73,3 @@ void set_everything_c()
set_invalid_c();
set_inexact_c();
}

#endif /* CPPUTEST_HAVE_FENV */

0 comments on commit bf58b42

Please sign in to comment.