71 #ifndef INCLUDED_volk_32f_x2_divide_32f_a_H
72 #define INCLUDED_volk_32f_x2_divide_32f_a_H
78 #include <xmmintrin.h>
81 volk_32f_x2_divide_32f_a_sse(
float* cVector,
const float* aVector,
82 const float* bVector,
unsigned int num_points)
84 unsigned int number = 0;
85 const unsigned int quarterPoints = num_points / 4;
87 float* cPtr = cVector;
88 const float* aPtr = aVector;
89 const float* bPtr= bVector;
91 __m128 aVal, bVal, cVal;
92 for(;number < quarterPoints; number++){
93 aVal = _mm_load_ps(aPtr);
94 bVal = _mm_load_ps(bPtr);
96 cVal = _mm_div_ps(aVal, bVal);
98 _mm_store_ps(cPtr,cVal);
105 number = quarterPoints * 4;
106 for(;number < num_points; number++){
107 *cPtr++ = (*aPtr++) / (*bPtr++);
113 #ifdef LV_HAVE_GENERIC
116 volk_32f_x2_divide_32f_generic(
float* cVector,
const float* aVector,
117 const float* bVector,
unsigned int num_points)
119 float* cPtr = cVector;
120 const float* aPtr = aVector;
121 const float* bPtr= bVector;
122 unsigned int number = 0;
124 for(number = 0; number < num_points; number++){
125 *cPtr++ = (*aPtr++) / (*bPtr++);
134 volk_32f_x2_divide_32f_a_orc_impl(
float* cVector,
const float* aVector,
135 const float* bVector,
unsigned int num_points);
138 volk_32f_x2_divide_32f_u_orc(
float* cVector,
const float* aVector,
139 const float* bVector,
unsigned int num_points)
141 volk_32f_x2_divide_32f_a_orc_impl(cVector, aVector, bVector, num_points);