summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-09-08 17:17:18 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-09-08 19:49:40 +0200
commit248777ee5135870faecf4188cac0ab3cf708e8e2 (patch)
treefcd72d39899ce2e912697c44fe3726b703c0a744
parent752235a69024f36e28107fde1b3648fe1ea6174c (diff)
Add a comment about possible use of standard functions, when/if available
Change-Id: Ia5c217c7388c1f8198cfb09fb5733c1ab08bc12f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173043 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--include/o3tl/safeint.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/o3tl/safeint.hxx b/include/o3tl/safeint.hxx
index 80f8b45c4042..a9d1ef23b32b 100644
--- a/include/o3tl/safeint.hxx
+++ b/include/o3tl/safeint.hxx
@@ -70,6 +70,8 @@ typename std::enable_if<std::is_signed<T>::value, T>::type saturating_toggle_sig
return a * -1;
}
+// TODO: reimplement using ckd_add/ckd_sub/ckd_mul from <stdckdint.h>, when C23 is part of C++
+
#if defined(_MSC_VER)
template<typename T> inline bool checked_multiply(T a, T b, T& result)