mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
* Require exact for match normals, instead of arbitrary .005 relative error * Add relaxation to allow 0 when float denormal is expected * Refactor to use common validation function
This commit is contained in:
@@ -1808,7 +1808,7 @@ static inline void check_for_denorms(float a[4], int *containsDenorms )
|
||||
{
|
||||
for( int i = 0; i < 4; i++ )
|
||||
{
|
||||
if( fabsf(a[i]) < FLT_MIN )
|
||||
if( IsFloatSubnormal( a[i] ) )
|
||||
a[i] = copysignf( 0.0f, a[i] );
|
||||
}
|
||||
}
|
||||
@@ -1816,7 +1816,7 @@ static inline void check_for_denorms(float a[4], int *containsDenorms )
|
||||
{
|
||||
for( int i = 0; i < 4; i++ )
|
||||
{
|
||||
if( fabs(a[i]) < FLT_MIN )
|
||||
if( IsFloatSubnormal( a[i] ) )
|
||||
{
|
||||
*containsDenorms = 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user