MeshLib C++ Docs
Loading...
Searching...
No Matches
MRNextUpDown.h File Reference
#include "MRBitCast.h"
#include <cmath>
#include <cstdint>
#include <limits>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::detail
 for internal use: namespace detail is not bound to other languages

Functions

template<typename T>
auto MR::detail::signStep (T x)
 +1 for positive x and -1 (all bits set) for negative x, as an unsigned integer of the same size as x
template<typename T>
bool MR::detail::nonzeroBelowMax (T x)
 whether 0 < |x| < max: then the closest values around x differ from it by one in the bits; one unsigned comparison of the bits
template<typename T>
T MR::nextUp (T x)
template<typename T>
T MR::nextDown (T x)