Compute Library
 22.08
SafeOps.h File Reference
#include "arm_compute/core/Error.h"
#include "support/Requires.h"
#include <limits>

Go to the source code of this file.

Namespaces

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

Functions

template<typename T , typename = typename std::enable_if<( std::is_integral<T>::value ), arm_compute::utils::requires::detail::enabler>::type>
safe_integer_add (T val_a, T val_b)
 Safe integer addition between two integers. More...
 
template<typename T , typename = typename std::enable_if<( std::is_integral<T>::value ), arm_compute::utils::requires::detail::enabler>::type>
safe_integer_sub (T val_a, T val_b)
 Safe integer subtraction between two integers. More...
 
template<typename T , typename = typename std::enable_if<( std::is_integral<T>::value ), arm_compute::utils::requires::detail::enabler>::type>
safe_integer_mul (T val_a, T val_b)
 Safe integer multiplication between two integers. More...
 
template<typename T , typename = typename std::enable_if<( std::is_integral<T>::value ), arm_compute::utils::requires::detail::enabler>::type>
safe_integer_div (T val_a, T val_b)
 Safe integer division between two integers. More...