5
|
1 /*
|
|
2 * SpanDSP - a series of DSP components for telephony
|
|
3 *
|
|
4 * vector_float.h
|
|
5 *
|
|
6 * Written by Steve Underwood <steveu@coppice.org>
|
|
7 *
|
|
8 * Copyright (C) 2003 Steve Underwood
|
|
9 *
|
|
10 * All rights reserved.
|
|
11 *
|
|
12 * This program is free software; you can redistribute it and/or modify
|
|
13 * it under the terms of the GNU General Public License version 2, as
|
|
14 * published by the Free Software Foundation.
|
|
15 *
|
|
16 * This program is distributed in the hope that it will be useful,
|
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 * GNU General Public License for more details.
|
|
20 *
|
|
21 * You should have received a copy of the GNU General Public License
|
|
22 * along with this program; if not, write to the Free Software
|
|
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
24 *
|
|
25 * $Id: vector_float.h,v 1.4 2006/10/24 13:45:28 steveu Exp $
|
|
26 */
|
|
27
|
|
28 #if !defined(_VECTOR_FLOAT_H_)
|
|
29 #define _VECTOR_FLOAT_H_
|
|
30
|
|
31 #ifdef __cplusplus
|
|
32 extern "C" {
|
|
33 #endif
|
|
34
|
|
35 void vec_copyf(float z[], const float x[], int n);
|
|
36
|
|
37 void vec_copy(double z[], const double x[], int n);
|
|
38
|
|
39 #if defined(HAVE_LONG_DOUBLE)
|
|
40 void vec_copyl(long double z[], const long double x[], int n);
|
|
41 #endif
|
|
42
|
|
43 void vec_zerof(float z[], int n);
|
|
44
|
|
45 void vec_zero(double z[], int n);
|
|
46
|
|
47 #if defined(HAVE_LONG_DOUBLE)
|
|
48 void vec_zerol(long double z[], int n);
|
|
49 #endif
|
|
50
|
|
51 void vec_setf(float z[], float x, int n);
|
|
52
|
|
53 void vec_set(double z[], double x, int n);
|
|
54
|
|
55 #if defined(HAVE_LONG_DOUBLE)
|
|
56 void vec_setl(long double z[], long double x, int n);
|
|
57 #endif
|
|
58
|
|
59 void vec_addf(float z[], const float x[], const float y[], int n);
|
|
60
|
|
61 void vec_add(double z[], const double x[], const double y[], int n);
|
|
62
|
|
63 #if defined(HAVE_LONG_DOUBLE)
|
|
64 void vec_addl(long double z[], const long double x[], const long double y[], int n);
|
|
65 #endif
|
|
66
|
|
67 void vec_scaled_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n);
|
|
68
|
|
69 void vec_scaled_add(double z[], const double x[], double x_scale, const double y[], double y_scale, int n);
|
|
70
|
|
71 #if defined(HAVE_LONG_DOUBLE)
|
|
72 void vec_scaled_addl(long double z[], const long double x[], long double x_scale, const long double y[], long double y_scale, int n);
|
|
73 #endif
|
|
74
|
|
75 void vec_subf(float z[], const float x[], const float y[], int n);
|
|
76
|
|
77 void vec_sub(double z[], const double x[], const double y[], int n);
|
|
78
|
|
79 #if defined(HAVE_LONG_DOUBLE)
|
|
80 void vec_subl(long double z[], const long double x[], const long double y[], int n);
|
|
81 #endif
|
|
82
|
|
83 void vec_scaled_subf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n);
|
|
84
|
|
85 void vec_scaled_sub(double z[], const double x[], double x_scale, const double y[], double y_scale, int n);
|
|
86
|
|
87 #if defined(HAVE_LONG_DOUBLE)
|
|
88 void vec_scaled_subl(long double z[], const long double x[], long double x_scale, const long double y[], long double y_scale, int n);
|
|
89 #endif
|
|
90
|
|
91 void vec_scalar_mulf(float z[], const float x[], float y, int n);
|
|
92
|
|
93 void vec_scalar_mul(double z[], const double x[], double y, int n);
|
|
94
|
|
95 #if defined(HAVE_LONG_DOUBLE)
|
|
96 void vec_scalar_mull(long double z[], const long double x[], long double y, int n);
|
|
97 #endif
|
|
98
|
|
99 float vec_dot_prodf(const float x[], const float y[], int n);
|
|
100
|
|
101 double vec_dot_prod(const double x[], const double y[], int n);
|
|
102
|
|
103 #if defined(HAVE_LONG_DOUBLE)
|
|
104 long double vec_dot_prodl(const long double x[], const long double y[], int n);
|
|
105 #endif
|
|
106
|
|
107 #ifdef __cplusplus
|
|
108 }
|
|
109 #endif
|
|
110
|
|
111 #endif
|
|
112 /*- End of file ------------------------------------------------------------*/
|