HPM SDK
HPMicro Software Development Kit

Bitwise AND Functions. More...

Functions

static void hpm_dsp_and_u32 (u32_t *src1, u32_t *src2, u32_t *dst, uint32_t size)
 Compute the logical bitwise AND of two u32 vectors. More...
 
static void hpm_dsp_and_u16 (u16_t *src1, u16_t *src2, u16_t *dst, uint32_t size)
 Compute the logical bitwise AND of two u16 vectors. More...
 
static void hpm_dsp_and_u8 (u8_t *src1, u8_t *src2, u8_t *dst, uint32_t size)
 Compute the logical bitwise AND of two u8 vectors. More...
 

Detailed Description

Bitwise AND Functions.

Bitwise AND functions calculate logical bitwise AND value from separate source vectors and write the results one-by-one into a destination vector.

Andes DSP library supports distinct bitwise AND functions for U32, U15 and U8 data types. These functions are introduced in the subsections below.

Function Documentation

◆ hpm_dsp_and_u16()

static void hpm_dsp_and_u16 ( u16_t *  src1,
u16_t *  src2,
u16_t *  dst,
uint32_t  size 
)
inlinestatic

#include <middleware/hpm_math/hpm_math.h>

Compute the logical bitwise AND of two u16 vectors.

Parameters
[in]*src1pointer of the first input vector
[in]*src2pointer of the second input vector
[out]*dstpointer of the output vector
[in]sizenumber of elements in a vector

◆ hpm_dsp_and_u32()

static void hpm_dsp_and_u32 ( u32_t *  src1,
u32_t *  src2,
u32_t *  dst,
uint32_t  size 
)
inlinestatic

#include <middleware/hpm_math/hpm_math.h>

Compute the logical bitwise AND of two u32 vectors.

Parameters
[in]*src1pointer of the first input vector
[in]*src2pointer of the second input vector
[out]*dstpointer of the output vector
[in]sizenumber of elements in a vector

◆ hpm_dsp_and_u8()

static void hpm_dsp_and_u8 ( u8_t *  src1,
u8_t *  src2,
u8_t *  dst,
uint32_t  size 
)
inlinestatic

#include <middleware/hpm_math/hpm_math.h>

Compute the logical bitwise AND of two u8 vectors.

Parameters
[in]*src1pointer of the first input vector
[in]*src2pointer of the second input vector
[out]*dstpointer of the output vector
[in]sizenumber of elements in a vector