Functions
mmwavelib_shift.c File Reference

Routine to right-shift vector elements. More...

#include <stdint.h>
#include <c6x.h>
#include "mmwavelib_vecutils.h"

Functions

void mmwavelib_shiftright16 (int16_t input[restrict], int16_t output[restrict], uint8_t numshift, uint32_t len)
 Function shifts each signed 16-bit element in vector right by k bits. The math is as follows: for ( i=0; i < len; i++) { output[i] = input[i]>>k; }. More...
 
void mmwavelib_shiftright32 (int32_t input[restrict], int32_t output[restrict], uint8_t numshift, uint32_t len)
 Function shifts each signed 32-bit word in vector right by k bits. The math is as follows: for ( i=0; i < len; i++) { output[i] = input[i]>>k; }. More...
 
void mmwavelib_shiftright32to16 (int32_t input[restrict], int16_t output[restrict], uint8_t numshift, uint32_t len)
 Function shifts each signed 32-bit word in vector right by k bits, and store the lower 16bits only. The math is as follows: for ( i=0; i < len; i++) { output[i] = (int16_t)(input[i]>>k); }. More...
 

Detailed Description

Routine to right-shift vector elements.


Copyright 2018, Texas Instruments Incorporated