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::max(). The library -/// prefers __SIZE_MAX__ because its a constexpr that is optimized well -/// by all compilers. std::numeric_limits::max() is not always a constexpr, -/// and it is not always optimized well. +/// \details SIZE_MAX provides the maximum value of a machine word. The value +/// is 0xffffffff on 32-bit targets, and 0xffffffffffffffff on 64-bit +/// targets. +/// \details If SIZE_MAX is not defined, then __SIZE_MAX__ is used if +/// defined. If not defined, then SIZE_T_MAX is used if defined. If not defined, +/// then the library uses std::numeric_limits::max(). +/// \details The library prefers __SIZE_MAX__ or __SIZE_T_MAX__ because +/// they are effectively constexpr that is optimized well by all compilers. +/// std::numeric_limits::max() is not always a constexpr, and +/// it is not always optimized well. # define SIZE_MAX ... #else // Its amazing portability problems still plague this simple concept in 2015.