libg722_1  0.0.1
utilities.h
1 /*
2  * g722_1 - a library for the G.722.1 and Annex C codecs
3  *
4  * utilities.h
5  *
6  * Copyright (C) 2006 Steve Underwood
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 #if !defined(__UTILITIES_H__)
14 #define __UTILITIES_H__
15 
16 /* Prototypes for some general purpose signal and vector functions */
17 #if defined(G722_1_USE_FIXED_POINT)
18 void vec_copyi16(int16_t z[], const int16_t x[], int n);
19 int32_t vec_dot_prodi16(const int16_t x[], const int16_t y[], int n);
20 #else
21 void vec_copyf(float z[], const float x[], int n);
22 void vec_zerof(float z[], int n);
23 void vec_subf(float z[], const float x[], const float y[], int n);
24 void vec_scalar_mulf(float z[], const float x[], float y, int n);
25 void vec_mulf(float z[], const float x[], const float y[], int n);
26 float vec_dot_prodf(const float x[], const float y[], int n);
27 void vec_scaled_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n);
28 void vec_scaled_subf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n);
29 #endif
30 
31 #endif
32 /*- End of file ------------------------------------------------------------*/