aboutsummaryrefslogtreecommitdiff
path: root/source/testfloat.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/testfloat.c')
-rw-r--r--source/testfloat.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/testfloat.c b/source/testfloat.c
index 87a1016..1dd5abe 100644
--- a/source/testfloat.c
+++ b/source/testfloat.c
@@ -1428,6 +1428,15 @@ void
}
+static uint_fast8_t clearExceptionFlags( void )
+{
+ uint_fast8_t prevFlags;
+
+ prevFlags = slowfloat_exceptionFlags;
+ slowfloat_exceptionFlags = 0;
+ return prevFlags;
+}
+
int main( int argc, char *argv[] )
{
bool haveFunctionArg;
@@ -1448,7 +1457,7 @@ int main( int argc, char *argv[] )
if ( argc <= 1 ) goto writeHelpMessage;
genCases_setLevel( 1 );
verCases_maxErrorCount = 20;
- testLoops_trueFlagsPtr = &softfloat_exceptionFlags;
+ testLoops_trueFlagsFunction = clearExceptionFlags;
testLoops_subjFlagsFunction = subjfloat_clearExceptionFlags;
haveFunctionArg = false;
standardFunctionInfoPtr = 0;