HPM SDK
HPMicro Software Development Kit
Bitwise exclusive OR Functions

Bitwise exclusive OR Functions. More...

Functions

static void hpm_dsp_xor_u32 (u32_t *src1, u32_t *src2, u32_t *dst, uint32_t size)
 Compute the logical bitwise XOR of two u32 vectors. More...
 
static void hpm_dsp_xor_u16 (u16_t *src1, u16_t *src2, u16_t *dst, uint32_t size)
 Compute the logical bitwise XOR of two u16 vectors. More...
 
static void hpm_dsp_xor_u8 (u8_t *src1, u8_t *src2, u8_t *dst, uint32_t size)
 Compute the logical bitwise XOR of two u8 vectors. More...
 

Detailed Description

Bitwise exclusive OR Functions.

Bitwise exclusive OR (XOR) functions calculate logical bitwise XOR value from separate source vectors and write the results one-by-one into a destination vector.

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

Function Documentation

◆ hpm_dsp_xor_u16()

static void hpm_dsp_xor_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 XOR 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_xor_u32()

static void hpm_dsp_xor_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 XOR 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_xor_u8()

static void hpm_dsp_xor_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 XOR 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