Compute Library
 22.11
SaturateCast.h File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::utils
 
 arm_compute::utils::cast
 

Functions

template<typename T , typename U , typename std::enable_if< std::is_same< T, U >::value, int >::type = 0>
saturate_cast (U v)
 
template<typename T , typename U , typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value &&std::is_signed< U >() &&std::is_signed< T >() &&!std::is_same< T, U >::value &&sizeof(T) > = sizeof(U), int >
std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value &&std::is_signed< U >) &&std::is_signed< T >) &&!std::is_same< T, U >::value &&sizeof(T)< sizeof(U), int >::type=0 > T saturate_cast (U v)
 

Variables

template<typename T , typename U , typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value &&std::is_signed< U >() &&std::is_signed< T >() &&!std::is_same< T, U >::value &&sizeof(T) > = sizeof(U), int >
 U