Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
base::internal::ClampedMaxOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type > Struct Template Reference

#include <clamped_math_impl.h>

Public Types

using result_type = typename MaxExponentPromotion< T, U >::type
 

Static Public Member Functions

template<typename V = result_type>
static constexpr V Do (T x, U y)
 

Detailed Description

template<typename T, typename U>
struct base::internal::ClampedMaxOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >

Definition at line 285 of file clamped_math_impl.h.

Member Typedef Documentation

◆ result_type

template<typename T , typename U >
using base::internal::ClampedMaxOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >::result_type = typename MaxExponentPromotion<T, U>::type

Definition at line 290 of file clamped_math_impl.h.

Member Function Documentation

◆ Do()

template<typename T , typename U >
template<typename V = result_type>
static constexpr V base::internal::ClampedMaxOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >::Do ( T  x,
y 
)
inlinestaticconstexpr

Definition at line 292 of file clamped_math_impl.h.

292 {
293 return IsGreater<T, U>::Test(x, y) ? saturated_cast<V>(x)
294 : saturated_cast<V>(y);
295 }
T __attribute__((ext_vector_type(N))) V
double y
double x
constexpr Dst saturated_cast(Src value)
static constexpr bool Test(const L lhs, const R rhs)

The documentation for this struct was generated from the following file: