libg722_1
0.0.1
|
00001 /* 00002 * g722_1 - a library for the G.722.1 and Annex C codecs 00003 * 00004 * utilities.h 00005 * 00006 * Copyright (C) 2006 Steve Underwood 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 */ 00012 00013 #if !defined(__UTILITIES_H__) 00014 #define __UTILITIES_H__ 00015 00016 /* Prototypes for some general purpose signal and vector functions */ 00017 #if defined(G722_1_USE_FIXED_POINT) 00018 void vec_copyi16(int16_t z[], const int16_t x[], int n); 00019 int32_t vec_dot_prodi16(const int16_t x[], const int16_t y[], int n); 00020 #else 00021 void vec_copyf(float z[], const float x[], int n); 00022 void vec_zerof(float z[], int n); 00023 void vec_subf(float z[], const float x[], const float y[], int n); 00024 void vec_scalar_mulf(float z[], const float x[], float y, int n); 00025 void vec_mulf(float z[], const float x[], const float y[], int n); 00026 float vec_dot_prodf(const float x[], const float y[], int n); 00027 void vec_scaled_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n); 00028 void vec_scaled_subf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n); 00029 #endif 00030 00031 #endif 00032 /*- End of file ------------------------------------------------------------*/