From b3637d2f4c8c33317e4b9e7d5e637e8e33766e00 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Wed, 10 Jun 2015 12:19:54 -0700 Subject: [PATCH] Fix bug in tcu::Interval::intersects() This bug (probably just a typo) was causing issues in atan(y, x) tests. The verification didn't account for small denormal divisors being flushed to +0. Bug: 21326633 Change-Id: I044ab38fb7f2ae316dfdac0674eab942fc5c8446 --- framework/common/tcuInterval.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/common/tcuInterval.hpp b/framework/common/tcuInterval.hpp index 0a2f65f..0c29d57 100644 --- a/framework/common/tcuInterval.hpp +++ b/framework/common/tcuInterval.hpp @@ -118,7 +118,7 @@ public: bool intersects (const Interval& other) const { - return ((other.hi() >= lo() && other.lo() >= hi()) || + return ((other.hi() >= lo() && other.lo() <= hi()) || (other.hasNaN() && hasNaN())); } -- 2.7.4