From: Pyry Haulos Date: Wed, 10 Jun 2015 19:19:54 +0000 (-0700) Subject: Fix bug in tcu::Interval::intersects() X-Git-Tag: upstream/0.1.0~1309^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3637d2f4c8c33317e4b9e7d5e637e8e33766e00;p=platform%2Fupstream%2FVK-GL-CTS.git 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 --- 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())); }