Remove duplicate IsXSubnormal functions (#826)

* Remove duplicate IsXSubnormal functions

Is{Double,FLoat,Half}Subnormal function duplicates are currently in the codebase.

Fixes #511

Change-Id: Ibe97f20a6e38db6aed00c9ba397cfa72036bd1c5
Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>

* Update conversions.h
This commit is contained in:
ellnor01
2020-06-17 10:14:33 +01:00
committed by GitHub
parent 4f4950feee
commit 164b5ef5cf
3 changed files with 4 additions and 66 deletions

View File

@@ -114,7 +114,8 @@ static inline int IsDoubleSubnormal( double x )
}
static inline int IsHalfSubnormal( cl_half x )
{
{
// this relies on interger overflow to exclude 0 as a subnormal
return ( ( x & 0x7fffU ) - 1U ) < 0x03ffU;
}