Workaround for libhoudini.so sin&cos bug
authorPyry Haulos <phaulos@google.com>
Wed, 22 Oct 2014 20:00:36 +0000 (13:00 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 22 Oct 2014 20:21:12 +0000 (13:21 -0700)
commit6541c9eb90bec1066d78d566a6de4551683fa5bb
treec5129fcd2cde92019bec51ac8ce28d4ad12d62ec
parentb69b028a90e2fcb214556412392fdc73327a0e4b
Workaround for libhoudini.so sin&cos bug

This is a workaround for Intel ARM->x86 translator (houdini) bug.
sin() & cos() return garbage for very large inputs. The outcome is
that when codomain is applied the result interval becomes empty.

Workaround is to bring the input value to the base range via modulo
if sin/cos returns an invalid values.

Change-Id: I2178daf2f9ffec543c1cf9fad2881719dd7736cc
modules/glshared/glsBuiltinPrecisionTests.cpp