LIBML  Version 3.2.4
LIBML DSP Software Library
Data Structures | Macros | Typedefs | Enumerations | Functions
arm_math.h File Reference
#include <string.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include "tpt_math.h"
#include "arm_math_fast.h"
#include "arm_math_vector.h"
#include "arm_math_support.h"
#include "arm_math_complex.h"
#include "arm_math_matrix.h"
#include "arm_math_transform.h"
#include "arm_math_filter.h"
#include "arm_math_controller.h"
#include "arm_math_statistics.h"
#include "arm_math_svm.h"
#include "arm_math_distance.h"
Include dependency graph for arm_math.h:

Data Structures

struct  arm_gaussian_naive_bayes_instance_f32
 

Macros

#define IS_LITTLE_ENDIAN
 
#define float64_t   f64_t
 
#define float32_t   f32_t
 
#define __PKHBT(x, y, z)    (((int32_t)(x) & 0xFFFF) | (((int32_t)(y) << z) & 0xFFFF0000))
 
#define __PKHTB(x, y, z)    (((int32_t)(x) & 0xFFFF0000) | (((int32_t)(y) >> z) & 0xFFFF))
 
#define __PACKq7(w, x, y, z)
 
#define mult_32x32_keep32(a, x, y)   a = (q31_t)(((q63_t)x * y) >> 32)
 
#define multAcc_32x32_keep32(a, x, y)   a += (q31_t)(((q63_t)x * y) >> 32)
 
#define multSub_32x32_keep32(a, x, y)   a -= (q31_t)(((q63_t)x * y) >> 32)
 
#define mult_32x32_keep32_R(a, x, y)    a = (q31_t)(((q63_t)x * y + 0x80000000LL) >> 32)
 
#define multAcc_32x32_keep32_R(a, x, y)    a = (q31_t)(((((q63_t)a) << 32) + ((q63_t)x * y) + 0x80000000LL) >> 32)
 
#define multSub_32x32_keep32_R(a, x, y)    a = (q31_t)(((((q63_t)a) << 32) - ((q63_t)x * y) + 0x80000000LL) >> 32)
 

Typedefs

typedef enum tpt_status arm_status
 

Enumerations

enum  tpt_status {
  TPT_STATUS_SUCCESS = 0 , ARM_MATH_SUCCESS = 0 , TPT_STATUS_ARGUMENT_ERROR = -1 , ARM_MATH_ARGUMENT_ERROR = -1 ,
  ARM_MATH_LENGTH_ERROR = -2 , ARM_MATH_SIZE_MISMATCH = -3 , ARM_MATH_NANINF = -4 , TPT_STATUS_SINGULAR = -5 ,
  ARM_MATH_SINGULAR = -5 , ARM_MATH_TEST_FAILURE = -6
}
 

Functions

static q31_t read_q15x2 (q15_t *aQ15)
 
static q31_t read_q15x2_ia (q15_t **aQ15)
 
static q31_t read_q15x2_da (q15_t **aQ15)
 
static void write_q15x2_ia (q15_t **aQ15, q31_t aValue)
 
static void write_q15x2 (q15_t *aQ15, q31_t aValue)
 
static q31_t read_q7x4_ia (q7_t **aQ7)
 
static q31_t read_q7x4_da (q7_t **aQ7)
 
static void write_q7x4_ia (q7_t **aQ7, q31_t aValue)
 
static q63_t mult32x64 (q63_t aValue1, q31_t aValue2)
 
static uint32_t __QADD8 (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __QSUB8 (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __QADD16 (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SHADD16 (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __QSUB16 (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SHSUB16 (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __QASX (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SHASX (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __QSAX (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SHSAX (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SMUSDX (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SMUADX (uint32_t aValue1, uint32_t aValue2)
 
static inlinbe int32_t __QADD (int32_t aValue1, int32_t aValue2)
 
static int32_t __QSUB (int32_t aValue1, int32_t aValue2)
 
static uint32_t __SMLAD (uint32_t aValue1, uint32_t aValue2, uint32_t aSum)
 
static uint32_t __SMLADX (uint32_t aValue1, uint32_t aValue2, uint32_t aSum)
 
static uint32_t __SMLSDX (uint32_t aValue1, uint32_t aValue2, uint32_t aSum)
 
static uint64_t __SMLALD (uint32_t aValue1, uint32_t aValue2, uint32_t aSum)
 
static uint64_t __SMLALDX (uint32_t aValue1, uint32_t aValue2, uint64_t aSum)
 
static uint32_t __SMUAD (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SMUSD (uint32_t aValue1, uint32_t aValue2)
 
static uint32_t __SXTB16 (uint32_t aValue)
 
static int32_t __SMMLA (uint32_t aValue1, uint32_t aValue2, int32_t aSum)
 
uint32_t arm_gaussian_naive_bayes_predict_f32 (const arm_gaussian_naive_bayes_instance_f32 *S, const float32_t *in, float32_t *pBuffer)
 

Macro Definition Documentation

◆ __PACKq7

#define __PACKq7 (   w,
  x,
  y,
 
)
Value:
(((int32_t)(w) & 0xFF) | (((int32_t)(x) << 8) & 0xFF00) | \
(((int32_t)(y) << 16) & 0xFF0000) | (((int32_t)(z) << 24) & 0xFF000000))

◆ __PKHBT

#define __PKHBT (   x,
  y,
 
)     (((int32_t)(x) & 0xFFFF) | (((int32_t)(y) << z) & 0xFFFF0000))

◆ __PKHTB

#define __PKHTB (   x,
  y,
 
)     (((int32_t)(x) & 0xFFFF0000) | (((int32_t)(y) >> z) & 0xFFFF))

◆ float32_t

#define float32_t   f32_t

◆ float64_t

#define float64_t   f64_t

◆ IS_LITTLE_ENDIAN

#define IS_LITTLE_ENDIAN

◆ mult_32x32_keep32

#define mult_32x32_keep32 (   a,
  x,
 
)    a = (q31_t)(((q63_t)x * y) >> 32)

◆ mult_32x32_keep32_R

#define mult_32x32_keep32_R (   a,
  x,
 
)     a = (q31_t)(((q63_t)x * y + 0x80000000LL) >> 32)

◆ multAcc_32x32_keep32

#define multAcc_32x32_keep32 (   a,
  x,
 
)    a += (q31_t)(((q63_t)x * y) >> 32)

◆ multAcc_32x32_keep32_R

#define multAcc_32x32_keep32_R (   a,
  x,
 
)     a = (q31_t)(((((q63_t)a) << 32) + ((q63_t)x * y) + 0x80000000LL) >> 32)

◆ multSub_32x32_keep32

#define multSub_32x32_keep32 (   a,
  x,
 
)    a -= (q31_t)(((q63_t)x * y) >> 32)

◆ multSub_32x32_keep32_R

#define multSub_32x32_keep32_R (   a,
  x,
 
)     a = (q31_t)(((((q63_t)a) << 32) - ((q63_t)x * y) + 0x80000000LL) >> 32)

Typedef Documentation

◆ arm_status

typedef enum tpt_status arm_status

Enumeration Type Documentation

◆ tpt_status

enum tpt_status
Enumerator
TPT_STATUS_SUCCESS 
ARM_MATH_SUCCESS 
TPT_STATUS_ARGUMENT_ERROR 
ARM_MATH_ARGUMENT_ERROR 
ARM_MATH_LENGTH_ERROR 
ARM_MATH_SIZE_MISMATCH 
ARM_MATH_NANINF 
TPT_STATUS_SINGULAR 
ARM_MATH_SINGULAR 
ARM_MATH_TEST_FAILURE 

Function Documentation

◆ __QADD()

static inlinbe int32_t __QADD ( int32_t  aValue1,
int32_t  aValue2 
)
static

◆ __QADD16()

static uint32_t __QADD16 ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __QADD8()

static uint32_t __QADD8 ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __QASX()

static uint32_t __QASX ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __QSAX()

static uint32_t __QSAX ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __QSUB()

static int32_t __QSUB ( int32_t  aValue1,
int32_t  aValue2 
)
inlinestatic

◆ __QSUB16()

static uint32_t __QSUB16 ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __QSUB8()

static uint32_t __QSUB8 ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SHADD16()

static uint32_t __SHADD16 ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SHASX()

static uint32_t __SHASX ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SHSAX()

static uint32_t __SHSAX ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SHSUB16()

static uint32_t __SHSUB16 ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SMLAD()

static uint32_t __SMLAD ( uint32_t  aValue1,
uint32_t  aValue2,
uint32_t  aSum 
)
inlinestatic

◆ __SMLADX()

static uint32_t __SMLADX ( uint32_t  aValue1,
uint32_t  aValue2,
uint32_t  aSum 
)
inlinestatic

◆ __SMLALD()

static uint64_t __SMLALD ( uint32_t  aValue1,
uint32_t  aValue2,
uint32_t  aSum 
)
inlinestatic

◆ __SMLALDX()

static uint64_t __SMLALDX ( uint32_t  aValue1,
uint32_t  aValue2,
uint64_t  aSum 
)
inlinestatic

◆ __SMLSDX()

static uint32_t __SMLSDX ( uint32_t  aValue1,
uint32_t  aValue2,
uint32_t  aSum 
)
inlinestatic

◆ __SMMLA()

static int32_t __SMMLA ( uint32_t  aValue1,
uint32_t  aValue2,
int32_t  aSum 
)
inlinestatic

◆ __SMUAD()

static uint32_t __SMUAD ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SMUADX()

static uint32_t __SMUADX ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SMUSD()

static uint32_t __SMUSD ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SMUSDX()

static uint32_t __SMUSDX ( uint32_t  aValue1,
uint32_t  aValue2 
)
inlinestatic

◆ __SXTB16()

static uint32_t __SXTB16 ( uint32_t  aValue)
inlinestatic

◆ arm_gaussian_naive_bayes_predict_f32()

uint32_t arm_gaussian_naive_bayes_predict_f32 ( const arm_gaussian_naive_bayes_instance_f32 S,
const float32_t in,
float32_t pBuffer 
)

◆ mult32x64()

static q63_t mult32x64 ( q63_t  aValue1,
q31_t  aValue2 
)
inlinestatic

◆ read_q15x2()

static q31_t read_q15x2 ( q15_t aQ15)
inlinestatic

◆ read_q15x2_da()

static q31_t read_q15x2_da ( q15_t **  aQ15)
inlinestatic

◆ read_q15x2_ia()

static q31_t read_q15x2_ia ( q15_t **  aQ15)
inlinestatic

◆ read_q7x4_da()

static q31_t read_q7x4_da ( q7_t **  aQ7)
inlinestatic

◆ read_q7x4_ia()

static q31_t read_q7x4_ia ( q7_t **  aQ7)
inlinestatic

◆ write_q15x2()

static void write_q15x2 ( q15_t aQ15,
q31_t  aValue 
)
inlinestatic

◆ write_q15x2_ia()

static void write_q15x2_ia ( q15_t **  aQ15,
q31_t  aValue 
)
inlinestatic

◆ write_q7x4_ia()

static void write_q7x4_ia ( q7_t **  aQ7,
q31_t  aValue 
)
inlinestatic