#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.
|
#define | M_PI (3.14159265358979323846) |
|
|
template<typename T > |
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> |
T | 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> |
T | trunc (T value) |
| Truncate floating-point value. More...
|
|
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> |
T | 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> |
T | 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 > |
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) |
|
◆ M_PI
#define M_PI (3.14159265358979323846) |