aboutsummaryrefslogtreecommitdiff
path: root/test_conformance/math_brute_force/unary_two_results_float.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test_conformance/math_brute_force/unary_two_results_float.cpp')
-rw-r--r--test_conformance/math_brute_force/unary_two_results_float.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test_conformance/math_brute_force/unary_two_results_float.cpp b/test_conformance/math_brute_force/unary_two_results_float.cpp
index 74c5a160..8d423408 100644
--- a/test_conformance/math_brute_force/unary_two_results_float.cpp
+++ b/test_conformance/math_brute_force/unary_two_results_float.cpp
@@ -189,12 +189,11 @@ int TestFunc_Float2_Float(const Func *f, MTdata d, bool relaxedMode)
// Get that moving
if ((error = clFlush(gQueue))) vlog("clFlush failed\n");
- FPU_mode_type oldMode;
+ FPU_mode_type oldMode = 0;
RoundingMode oldRoundMode = kRoundToNearestEven;
if (isFract)
{
// Calculate the correctly rounded reference result
- memset(&oldMode, 0, sizeof(oldMode));
if (ftz || relaxedMode) ForceFTZ(&oldMode);
// Set the rounding mode to match the device