Template Function librapid::detail::algorithm::normMinusOne#

Function Documentation#

template<typename T>
auto librapid::detail::algorithm::normMinusOne(const T x, const T y) noexcept -> T#

Calculates \( x^2 + y^2 - 1 \) for \( |x| \geq |y| \) and \( 0.5 \leq |x| < 2^{12} \).

Template Parameters

T – Template type

Parameters
  • x – First value

  • y – Second value

Returns

x * x + y * y - 1