#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <math.h>
Go to the source code of this file.
|
#define | POLY0(x, c0) _mm_set1_ps(c0) |
|
#define | POLY1(x, c0, c1) _mm_add_ps(_mm_mul_ps(POLY0(x, c1), x), _mm_set1_ps(c0)) |
|
#define | POLY2(x, c0, c1, c2) _mm_add_ps(_mm_mul_ps(POLY1(x, c1, c2), x), _mm_set1_ps(c0)) |
|
#define | POLY3(x, c0, c1, c2, c3) _mm_add_ps(_mm_mul_ps(POLY2(x, c1, c2, c3), x), _mm_set1_ps(c0)) |
|
#define | POLY4(x, c0, c1, c2, c3, c4) _mm_add_ps(_mm_mul_ps(POLY3(x, c1, c2, c3, c4), x), _mm_set1_ps(c0)) |
|
#define | POLY5(x, c0, c1, c2, c3, c4, c5) _mm_add_ps(_mm_mul_ps(POLY4(x, c1, c2, c3, c4, c5), x), _mm_set1_ps(c0)) |
|
#define | POW_POLY_DEGREE 3 |
|
#define | INCLUDED_volk_32f_x2_pow_32f_u_H |
|
#define INCLUDED_volk_32f_x2_pow_32f_u_H |
#define POLY0 |
( |
|
x, |
|
|
|
c0 |
|
) |
| _mm_set1_ps(c0) |
#define POLY1 |
( |
|
x, |
|
|
|
c0, |
|
|
|
c1 |
|
) |
| _mm_add_ps(_mm_mul_ps(POLY0(x, c1), x), _mm_set1_ps(c0)) |
#define POLY2 |
( |
|
x, |
|
|
|
c0, |
|
|
|
c1, |
|
|
|
c2 |
|
) |
| _mm_add_ps(_mm_mul_ps(POLY1(x, c1, c2), x), _mm_set1_ps(c0)) |
#define POLY3 |
( |
|
x, |
|
|
|
c0, |
|
|
|
c1, |
|
|
|
c2, |
|
|
|
c3 |
|
) |
| _mm_add_ps(_mm_mul_ps(POLY2(x, c1, c2, c3), x), _mm_set1_ps(c0)) |
#define POLY4 |
( |
|
x, |
|
|
|
c0, |
|
|
|
c1, |
|
|
|
c2, |
|
|
|
c3, |
|
|
|
c4 |
|
) |
| _mm_add_ps(_mm_mul_ps(POLY3(x, c1, c2, c3, c4), x), _mm_set1_ps(c0)) |
#define POLY5 |
( |
|
x, |
|
|
|
c0, |
|
|
|
c1, |
|
|
|
c2, |
|
|
|
c3, |
|
|
|
c4, |
|
|
|
c5 |
|
) |
| _mm_add_ps(_mm_mul_ps(POLY4(x, c1, c2, c3, c4, c5), x), _mm_set1_ps(c0)) |
#define POW_POLY_DEGREE 3 |