Annotate noexcept and constexpr with HEDLEY, and add interval containment, ChaCha, and the dyadic range tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 20:44:07 -06:00
parent 875f09fec1
commit 0d8a5a8131
97 changed files with 9212 additions and 1159 deletions

View file

@ -157,6 +157,7 @@ template <>
struct make_from_integral_value<dpf::nyble>
{
using integral_type = std::uint8_t;
HEDLEY_NO_THROW
constexpr dpf::nyble operator()(integral_type val) const noexcept
{
return dpf::to_nyble(val);
@ -189,8 +190,11 @@ class numeric_limits<dpf::nyble> : public numeric_limits<std::uint8_t>
public:
static constexpr int digits = 4;
static constexpr int digits10 = 1;
HEDLEY_NO_THROW
static constexpr dpf::nyble min() noexcept { return dpf::nyble::zero; }
HEDLEY_NO_THROW
static constexpr dpf::nyble max() noexcept { return dpf::nyble{15}; }
HEDLEY_NO_THROW
static constexpr dpf::nyble lowest() noexcept { return min(); }
};