diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-09-17 19:53:55 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2019-11-06 11:36:49 +0100 |
commit | 7bf4f81de81b6e800509867d5acad545c566dbac (patch) | |
tree | 4528d7e30048a0a4da872d5c7528c7f3ea6b4dac /src/corelib/global/qfloat16.cpp | |
parent | b7858e9b4bdb2866f0c76ecaa8dd25bd9b618afc (diff) |
Add qfloat16::copySign() since we can't overload std::copysign()
Change-Id: Idfaf841b3eb3538f076ae4f0de2d7d029e1588fe
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qfloat16.cpp')
-rw-r--r-- | src/corelib/global/qfloat16.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/global/qfloat16.cpp b/src/corelib/global/qfloat16.cpp index 6c21b7de5a..97709d7685 100644 --- a/src/corelib/global/qfloat16.cpp +++ b/src/corelib/global/qfloat16.cpp @@ -146,6 +146,14 @@ QT_BEGIN_NAMESPACE */ /*! + \since 5.15 + \fn qfloat16::copySign(qfloat16 sign) const noexcept + + Returns a qfloat16 with the sign of \a sign but the rest of its value taken + from this qfloat16. Serves as qfloat16's equivalent of std::copysign(). +*/ + +/*! \internal \since 5.14 Implements qFpClassify() for qfloat16. |