GNU Radio's BLOCKSTREAM Package
sse_mathfun.h
Go to the documentation of this file.
1
/* SIMD (SSE1+MMX or SSE2) implementation of sin, cos, exp and log
2
3
Inspired by Intel Approximate Math library, and based on the
4
corresponding algorithms of the cephes math library
5
6
The default is to use the SSE1 version. If you define USE_SSE2 the
7
the SSE2 intrinsics will be used in place of the MMX intrinsics. Do
8
not expect any significant performance improvement with SSE2.
9
*/
10
11
/* Copyright (C) 2007 Julien Pommier
12
13
This software is provided 'as-is', without any express or implied
14
warranty. In no event will the authors be held liable for any damages
15
arising from the use of this software.
16
17
Permission is granted to anyone to use this software for any purpose,
18
including commercial applications, and to alter it and redistribute it
19
freely, subject to the following restrictions:
20
21
1. The origin of this software must not be misrepresented; you must not
22
claim that you wrote the original software. If you use this software
23
in a product, an acknowledgment in the product documentation would be
24
appreciated but is not required.
25
2. Altered source versions must be plainly marked as such, and must not be
26
misrepresented as being the original software.
27
3. This notice may not be removed or altered from any source distribution.
28
29
(this is the zlib license)
30
*/
31
32
#ifdef __SSE__
33
#ifndef SSE_MATHFUN_H_
34
#define SSE_MATHFUN_H_
35
36
#include <xmmintrin.h>
37
38
typedef
__m128 v4sf;
// vector of 4 float (sse1)
39
40
// prototypes
41
inline
v4sf log_ps(v4sf x);
42
inline
v4sf exp_ps(v4sf x);
43
inline
v4sf sin_ps(v4sf x);
44
inline
v4sf cos_ps(v4sf x);
45
inline
void
sincos_ps(v4sf x, v4sf *s, v4sf *c);
46
47
#include "sse_mathfun.hxx"
48
49
#endif
50
#endif
include
mipp
math
sse_mathfun.h
Generated on Sun Dec 2 2018 17:34:21 for GNU Radio's BLOCKSTREAM Package by
1.8.5