15#if ( defined( _MSC_VER ) && !defined( __clang__ ) ) || ( defined( __x86_64__ ) && !( defined( __clang__ ) && defined( __SSE4_1__ ) ) ) || defined( __wasm__ )
16#define MR_ROUND_TO_INT_NO_LIBRARY_CALL
22#ifdef MR_ROUND_TO_INT_NO_LIBRARY_CALL
25 return int( x + half );
27 return int( std::round( x ) );
34#ifdef MR_ROUND_TO_INT_NO_LIBRARY_CALL
37 return int( x + half );
39 return int( std::round( x ) );
int roundToInt(double x) noexcept
the same as (int)std::round( x ) for any x in int range (halves are rounded away from zero),...
Definition MRRound.h:20
constexpr To bit_cast(const From &from) noexcept
std::bit_cast wrapper with the compiler's intrinsic fallback
Definition MRBitCast.h:17
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8