summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-14 12:50:50 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-14 12:50:50 -0400
commit5de1089c8c207a3c5738fb9542a9fe547c8fb200 (patch)
tree97c4e95417eaf2e30e4b8e3fa4aa57ef97def56e /misc.h
parente8b07b162feb97d2cd1ec7ec35063e9348fc446d (diff)
downloadcryptopp-git-5de1089c8c207a3c5738fb9542a9fe547c8fb200.tar.gz
Update documentation
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/misc.h b/misc.h
index 706a1b47..c405c4ab 100644
--- a/misc.h
+++ b/misc.h
@@ -103,14 +103,16 @@
#if CRYPTOPP_DOXYGEN_PROCESSING
/// \brief The maximum value of a machine word
-/// \details SIZE_MAX provides the maximum value of a machine word. The value is
-/// 0xffffffff on 32-bit machines, and 0xffffffffffffffff on 64-bit machines.
-/// Internally, SIZE_MAX is defined as __SIZE_MAX__ if __SIZE_MAX__ is defined. If not
-/// defined, then SIZE_T_MAX is tried. If neither __SIZE_MAX__ nor SIZE_T_MAX is
-/// is defined, the library uses std::numeric_limits<size_t>::max(). The library
-/// prefers __SIZE_MAX__ because its a constexpr that is optimized well
-/// by all compilers. std::numeric_limits<size_t>::max() is not always a constexpr,
-/// and it is not always optimized well.
+/// \details <tt>SIZE_MAX</tt> provides the maximum value of a machine word. The value
+/// is <tt>0xffffffff</tt> on 32-bit targets, and <tt>0xffffffffffffffff</tt> on 64-bit
+/// targets.
+/// \details If <tt>SIZE_MAX</tt> is not defined, then <tt>__SIZE_MAX__</tt> is used if
+/// defined. If not defined, then <tt>SIZE_T_MAX</tt> is used if defined. If not defined,
+/// then the library uses <tt>std::numeric_limits<size_t>::max()</tt>.
+/// \details The library prefers <tt>__SIZE_MAX__</tt> or <tt>__SIZE_T_MAX__</tt> because
+/// they are effectively <tt>constexpr</tt> that is optimized well by all compilers.
+/// <tt>std::numeric_limits<size_t>::max()</tt> is not always a <tt>constexpr</tt>, and
+/// it is not always optimized well.
# define SIZE_MAX ...
#else
// Its amazing portability problems still plague this simple concept in 2015.