cast_to_int64_t#

Fully qualified name: carb::math::cast_to_int64_t

Defined in carb/math/Int128.h

inline int64_t carb::math::cast_to_int64_t(
const int128_t &val,
) noexcept#

Truncates the signed 128-bit value, returning only the lowest 64-bits.

Parameters:

val – The signed 128-bit value to truncate.

Returns:

The least significant 64 bits of val.