1 #ifndef INCLUDED_volk_32f_s32f_normalize_a_H
2 #define INCLUDED_volk_32f_s32f_normalize_a_H
15 static inline void volk_32f_s32f_normalize_a_sse(
float* vecBuffer,
const float scalar,
unsigned int num_points){
16 unsigned int number = 0;
17 float* inputPtr = vecBuffer;
19 const float invScalar = 1.0 / scalar;
20 __m128 vecScalar = _mm_set_ps1(invScalar);
24 const uint64_t quarterPoints = num_points / 4;
25 for(;number < quarterPoints; number++){
27 input1 = _mm_load_ps(inputPtr);
29 input1 = _mm_mul_ps(input1, vecScalar);
31 _mm_store_ps(inputPtr, input1);
36 number = quarterPoints*4;
37 for(; number < num_points; number++){
38 *inputPtr *= invScalar;
44 #ifdef LV_HAVE_GENERIC
52 static inline void volk_32f_s32f_normalize_generic(
float* vecBuffer,
const float scalar,
unsigned int num_points){
53 unsigned int number = 0;
54 float* inputPtr = vecBuffer;
55 const float invScalar = 1.0 / scalar;
56 for(number = 0; number < num_points; number++){
57 *inputPtr *= invScalar;
71 extern void volk_32f_s32f_normalize_a_orc_impl(
float* dst,
float* src,
const float scalar,
unsigned int num_points);
72 static inline void volk_32f_s32f_normalize_u_orc(
float* vecBuffer,
const float scalar,
unsigned int num_points){
73 float invscalar = 1.0 / scalar;
74 volk_32f_s32f_normalize_a_orc_impl(vecBuffer, vecBuffer, invscalar, num_points);
unsigned __int64 uint64_t
Definition: stdint.h:90