GNU Radio's BLOCKSTREAM Package
neon_mathfun.h
Go to the documentation of this file.
1
/* NEON 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
7
/* Copyright (C) 2011 Julien Pommier
8
9
This software is provided 'as-is', without any express or implied
10
warranty. In no event will the authors be held liable for any damages
11
arising from the use of this software.
12
13
Permission is granted to anyone to use this software for any purpose,
14
including commercial applications, and to alter it and redistribute it
15
freely, subject to the following restrictions:
16
17
1. The origin of this software must not be misrepresented; you must not
18
claim that you wrote the original software. If you use this software
19
in a product, an acknowledgment in the product documentation would be
20
appreciated but is not required.
21
2. Altered source versions must be plainly marked as such, and must not be
22
misrepresented as being the original software.
23
3. This notice may not be removed or altered from any source distribution.
24
25
(this is the zlib license)
26
*/
27
28
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
29
#ifndef NEON_MATHFUN_H_
30
#define NEON_MATHFUN_H_
31
32
#include <arm_neon.h>
33
34
typedef
float32x4_t v4sf;
// vector of 4 float
35
36
// prototypes
37
inline
v4sf log_ps(v4sf x);
38
inline
v4sf exp_ps(v4sf x);
39
inline
v4sf sin_ps(v4sf x);
40
inline
v4sf cos_ps(v4sf x);
41
inline
void
sincos_ps(v4sf x, v4sf *s, v4sf *c);
42
43
#include "neon_mathfun.hxx"
44
45
#endif
46
#endif
include
mipp
math
neon_mathfun.h
Generated on Sat Dec 1 2018 13:02:22 for GNU Radio's BLOCKSTREAM Package by
1.8.5