mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 06:17:30 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
a7a525c65e
49 changed files with 1519 additions and 539 deletions
|
|
@ -396,6 +396,20 @@ NumbersAreIdentical(T aValue1, T aValue2)
|
|||
return BitwiseCast<Bits>(aValue1) == BitwiseCast<Bits>(aValue2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if |aValue| and |aValue2| are equal (ignoring sign if both are
|
||||
* zero) or both NaN.
|
||||
*/
|
||||
template <typename T>
|
||||
static inline bool
|
||||
EqualOrBothNaN(T aValue1, T aValue2)
|
||||
{
|
||||
if (IsNaN(aValue1)) {
|
||||
return IsNaN(aValue2);
|
||||
}
|
||||
return aValue1 == aValue2;
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue