Compute Library
 21.02
ToolchainSupport.h File Reference
#include <cassert>
#include <cmath>
#include <cstddef>
#include <limits>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include "support/Bfloat16.h"
#include "support/Half.h"

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::support
 
 arm_compute::support::cpp11
 

Macros

#define M_PI   (3.14159265358979323846)
 

Functions

template<typename T >
nearbyint (T value)
 Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode. More...
 
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type>
round (T value)
 Round floating-point value with half value rounding away from zero. More...
 
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type>
trunc (T value)
 Truncate floating-point value. More...
 
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type>
copysign (T x, T y)
 Composes a floating point value with the magnitude of x and the sign of y. More...
 
template<typename T , typename = typename std::enable_if < std::is_floating_point<T>::value >::type>
fma (T x, T y, T z)
 Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type. More...
 
template<typename... Ts>
int snprintf (char *s, std::size_t n, const char *fmt, Ts &&... args)
 Loads the data from the given location, converts them to character string equivalents and writes the result to a character string buffer. More...
 
template<typename T >
lowest ()
 
template<>
bfloat16 lowest< bfloat16 > ()
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
bool isfinite (T value)
 
bool isfinite (half_float::half value)
 
bool isfinite (bfloat16 value)
 

Macro Definition Documentation

◆ M_PI

#define M_PI   (3.14159265358979323846)

Definition at line 44 of file ToolchainSupport.h.

Referenced by CLFFTRadixStageKernel::configure().