LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
tpt_shift_u8.c File Reference
#include "tpt_math.h"
Include dependency graph for tpt_shift_u8.c:

Functions

static uint32_t sat_u32_to_u8 (q31_t src)
 Shifts the elements of a U8 vector a specified number of bits. More...
 
void tpt_shift_u8 (uint8_t *__restrict aOutData, const uint8_t *__restrict aInData, int8_t aShiftBits, uint32_t aCount)
 Shifts the elements of a U8 vector a specified number of bits. More...
 

Function Documentation

◆ sat_u32_to_u8()

static uint32_t sat_u32_to_u8 ( q31_t  src)
inlinestatic

Shifts the elements of a U8 vector a specified number of bits.

Parameters
[out]aOutDatapoints to the output vector
[in]aInDatapoints to the input vector
[in]aShiftBitsnumber of bits to shift. A positive value shifts left; a negative value shifts right
[in]aCountnumber of samples in each vector
Returns
none
The input and output are all saturated to u8 range [0x00 0xFF]