diff options
author | Tom Rondeau | 2011-10-20 10:46:35 -0700 |
---|---|---|
committer | Tom Rondeau | 2011-10-20 10:46:35 -0700 |
commit | ccfac187cf86122be5760cb1e2a0bba3a58821c7 (patch) | |
tree | 10071ac9bf28e2240fd05ab1ba820506ef0cd599 /volk/include | |
parent | 77a2d01cd2fce5a4e401a217c93fa13b76839162 (diff) | |
download | gnuradio-ccfac187cf86122be5760cb1e2a0bba3a58821c7.tar.gz gnuradio-ccfac187cf86122be5760cb1e2a0bba3a58821c7.tar.bz2 gnuradio-ccfac187cf86122be5760cb1e2a0bba3a58821c7.zip |
volk: fixed signed/unsigned comparison warnings.
Diffstat (limited to 'volk/include')
8 files changed, 8 insertions, 8 deletions
diff --git a/volk/include/volk/volk_32f_index_max_16u_a.h b/volk/include/volk/volk_32f_index_max_16u_a.h index 3e0cf1d65..0c43a5081 100644 --- a/volk/include/volk/volk_32f_index_max_16u_a.h +++ b/volk/include/volk/volk_32f_index_max_16u_a.h @@ -129,7 +129,7 @@ static inline void volk_32f_index_max_16u_a_generic(unsigned int* target, const float max = src0[0]; unsigned int index = 0; - int i = 1; + unsigned int i = 1; for(; i < num_points; ++i) { diff --git a/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h b/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h index 2ea8fa96d..153bb3a25 100644 --- a/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h +++ b/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h @@ -113,7 +113,7 @@ static inline void volk_32f_x3_sum_of_poly_32f_a_generic(float* target, float* s - int i = 0; + unsigned int i = 0; for(; i < num_bytes >> 2; ++i) { fst = src0[i]; diff --git a/volk/include/volk/volk_32fc_index_max_16u_a.h b/volk/include/volk/volk_32fc_index_max_16u_a.h index 312e034e2..9566aa32e 100644 --- a/volk/include/volk/volk_32fc_index_max_16u_a.h +++ b/volk/include/volk/volk_32fc_index_max_16u_a.h @@ -194,7 +194,7 @@ static inline void volk_32fc_index_max_16u_a_generic(unsigned int* target, lv_32 float max = 0.0; unsigned int index = 0; - int i = 0; + unsigned int i = 0; for(; i < num_bytes >> 3; ++i) { diff --git a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h index a6c21336d..655075528 100644 --- a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h +++ b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h @@ -21,7 +21,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_generic(lv_32fc_t* res float sum0[2] = {0,0}; float sum1[2] = {0,0}; - int i = 0; + unsigned int i = 0; for(i = 0; i < n_2_ccomplex_blocks; ++i) { diff --git a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h index 6b22d9f81..f11c93682 100644 --- a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h +++ b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h @@ -20,7 +20,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_u_generic(lv_32fc_t* res float sum0[2] = {0,0}; float sum1[2] = {0,0}; - int i = 0; + unsigned int i = 0; for(i = 0; i < n_2_ccomplex_blocks; ++i) { diff --git a/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h b/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h index 022a0a614..a865e0737 100644 --- a/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h +++ b/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h @@ -22,7 +22,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_generic(lv_32fc_t* result, const float sum0[2] = {0,0}; float sum1[2] = {0,0}; - int i = 0; + unsigned int i = 0; for(i = 0; i < n_2_ccomplex_blocks; ++i) { diff --git a/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h b/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h index be7a4ffe9..2d5f36b27 100644 --- a/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h +++ b/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h @@ -109,7 +109,7 @@ static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_sse3(float* t static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_generic(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_bytes) { lv_32fc_t diff; float sq_dist; - int i = 0; + unsigned int i = 0; for(; i < num_bytes >> 3; ++i) { diff = src0[0] - points[i]; diff --git a/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h b/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h index c21d00491..6a4a08ca5 100644 --- a/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h +++ b/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h @@ -95,7 +95,7 @@ static inline void volk_32fc_x2_square_dist_32f_a_sse3(float* target, lv_32fc_t* static inline void volk_32fc_x2_square_dist_32f_a_generic(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_bytes) { lv_32fc_t diff; float sq_dist; - int i = 0; + unsigned int i = 0; for(; i < num_bytes >> 3; ++i) { diff = src0[0] - points[i]; |