1 #ifndef INCLUDED_volk_32f_sqrt_32f_a_H
2 #define INCLUDED_volk_32f_sqrt_32f_a_H
16 static inline void volk_32f_sqrt_32f_a_sse(
float* cVector,
const float* aVector,
unsigned int num_points){
17 unsigned int number = 0;
18 const unsigned int quarterPoints = num_points / 4;
20 float* cPtr = cVector;
21 const float* aPtr = aVector;
24 for(;number < quarterPoints; number++){
26 aVal = _mm_load_ps(aPtr);
28 cVal = _mm_sqrt_ps(aVal);
30 _mm_store_ps(cPtr,cVal);
36 number = quarterPoints * 4;
37 for(;number < num_points; number++){
38 *cPtr++ = sqrtf(*aPtr++);
43 #ifdef LV_HAVE_GENERIC
50 static inline void volk_32f_sqrt_32f_generic(
float* cVector,
const float* aVector,
unsigned int num_points){
51 float* cPtr = cVector;
52 const float* aPtr = aVector;
53 unsigned int number = 0;
55 for(number = 0; number < num_points; number++){
56 *cPtr++ = sqrtf(*aPtr++);
62 extern void volk_32f_sqrt_32f_a_orc_impl(
float *,
const float*,
unsigned int);
69 static inline void volk_32f_sqrt_32f_u_orc(
float* cVector,
const float* aVector,
unsigned int num_points){
70 volk_32f_sqrt_32f_a_orc_impl(cVector, aVector, num_points);