vector_int.c File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "spandsp/telephony.h"
#include "spandsp/logging.h"
#include "spandsp/vector_int.h"

Functions

int32_t vec_dot_prodi16 (const int16_t x[], const int16_t y[], int n)
int32_t vec_min_maxi16 (const int16_t x[], int n, int16_t out[])
 Find the minimum and maximum values in a vector.

Detailed Description


Function Documentation

int32_t vec_min_maxi16 ( const int16_t  x[],
int  n,
int16_t  out[] 
)

Find the minimum and maximum values in a vector.

Parameters:
x The vector to be searched.
n The number of elements in the vetor.
result A two element vector. The first will receive the maximum. The second will receive thw minimum. This parameter may be set to NULL.
Returns:
The absolute maximum value. Since the range of negative numbers exceeds the range of positive one, the returned integer is longer than the ones being searched.


Generated on Tue Jul 24 11:29:29 2007 for libspandsp by  doxygen 1.5.2