Compute Library
 22.05
NEMath.inl File Reference
#include "support/ToolchainSupport.h"
#include <cmath>
#include <limits>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 

Functions

int32x4_t rounding_divide_by_pow2 (int32x4_t x, int32x4_t exponent)
 Round to the nearest division by a power-of-two using exponent. More...
 
int32x4_t rounding_divide_by_pow2 (int32x4_t x, int exponent)
 Round to the nearest division by a power-of-two using exponent. More...
 
int32_t rounding_divide_by_pow2 (int32_t x, int exponent)
 Round to the nearest division by a power-of-two using exponent. More...
 
float32x4x4_t convert_uint8x16_to_float32x4x4 (const uint8x16_t &in)
 Converts from uint8x16 to float32x4x4_t. More...
 
float32x4x4_t convert_int8x16_to_float32x4x4 (const int8x16_t &in)
 Converts from int8x16 to float32x4x4_t. More...
 
template<>
float32x4x4_t convert_to_float32x4x4 (const uint8x16_t &in)
 
template<>
float32x4x4_t convert_to_float32x4x4 (const int8x16_t &in)
 
void convert_float32x4x3_to_uint8x8x3 (const float32x4x3_t &in1, const float32x4x3_t &in2, uint8x8x3_t &out)
 Converts from two float32x4x3_t to just one uint8x8x3_t. More...
 
void convert_float32x4x4_to_uint8x16 (const float32x4x4_t &in, uint8x16_t &out)
 Converts from two float32x4x4_t to just one uint8x16_t. More...
 
void convert_float32x4x4_to_int8x16 (const float32x4x4_t &in, int8x16_t &out)
 Converts from float32x4x4_t to just one int8x16_t. More...
 
template<>
uint8x16_t convert_float_to_int< float32x4x4_t, uint8x16_t > (const float32x4x4_t &in)
 
template<>
float32x4x4_t convert_int_to_float< float32x4x4_t, uint8x16_t > (const uint8x16_t &in)
 
template<>
int8x16_t convert_float_to_int< float32x4x4_t, int8x16_t > (const float32x4x4_t &in)
 
template<>
float32x4x4_t convert_int_to_float< float32x4x4_t, int8x16_t > (const int8x16_t &in)
 
float vreduce (const float32x4_t &v)
 Reduce a vector to be a scalar by accumulating all lanes in the vector. More...
 

Variables

const std::array< float32x4_t, 8 > exp_tab
 Exponent polynomial coefficients. More...
 
const std::array< float32x4_t, 8 > log_tab
 Logarithm polynomial coefficients. More...
 
constexpr float te_sin_coeff2 = 0.166666666666f
 Sin polynomial coefficients. More...
 
constexpr float te_sin_coeff3 = 0.05f
 
constexpr float te_sin_coeff4 = 0.023809523810f
 
constexpr float te_sin_coeff5 = 0.013888888889f