Overview
Adds two int8_t vectors element-wise with saturation. Results are clamped to the range [-128, 127] to prevent overflow wraparound.
Dispatcher Prototype
void volk_8i_x2_add_saturated_8i(int8_t* outVector, const int8_t* inVectorA, const
int8_t* inVectorB, unsigned int num_points)
Inputs
- inVectorA: First input vector.
- inVectorB: Second input vector.
- num_points: Vector length.
Outputs
- outVector: Saturated sum output.
Example
unsigned int N = 8;
a[0] = 100; b[0] = 50;
a[1] = -100; b[1] = -50;
volk_8i_x2_add_saturated_8i(result, a, b, N);
size_t volk_get_alignment(void)
Get the machine alignment in bytes.
Definition volk.tmpl.c:90
__VOLK_DECL_BEGIN VOLK_API void * volk_malloc(size_t size, size_t alignment)
Allocate size bytes of data aligned to alignment.
Definition volk_malloc.c:38
VOLK_API void volk_free(void *aptr)
Free's memory allocated by volk_malloc.
Definition volk_malloc.c:70