Vector Optimized Library of Kernels  2.0
Architecture-tuned implementations of math kernels
volk_64u_popcntpuppet_64u.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_volk_64u_popcntpuppet_64u_H
24 #define INCLUDED_volk_64u_popcntpuppet_64u_H
25 
26 #include <volk/volk_64u_popcnt.h>
27 #include <stdint.h>
28 #include <string.h>
29 
30 #ifdef LV_HAVE_GENERIC
31 static inline void volk_64u_popcntpuppet_64u_generic(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points){
32  unsigned int ii;
33  for(ii=0; ii < num_points; ++ii) {
34  volk_64u_popcnt_generic(outVector+ii, num_points );
35  }
36  memcpy((void*)outVector, (void*)inVector, num_points * sizeof(uint64_t));
37 }
38 #endif /* LV_HAVE_GENERIC */
39 
40 #if LV_HAVE_SSE4_2 && LV_HAVE_64
41 static inline void volk_64u_popcntpuppet_64u_a_sse4_2(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points){
42  unsigned int ii;
43  for(ii=0; ii < num_points; ++ii) {
44  volk_64u_popcnt_a_sse4_2(outVector+ii, num_points );
45  }
46  memcpy((void*)outVector, (void*)inVector, num_points * sizeof(uint64_t));
47 }
48 #endif /* LV_HAVE_SSE4_2 */
49 
50 #ifdef LV_HAVE_NEON
51 static inline void volk_64u_popcntpuppet_64u_neon(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points){
52  unsigned int ii;
53  for(ii=0; ii < num_points; ++ii) {
54  volk_64u_popcnt_neon(outVector+ii, num_points );
55  }
56  memcpy((void*)outVector, (void*)inVector, num_points * sizeof(uint64_t));
57 }
58 #endif /* LV_HAVE_NEON */
59 
60 #endif /* INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H */
static void volk_64u_popcntpuppet_64u_neon(uint64_t *outVector, const uint64_t *inVector, unsigned int num_points)
Definition: volk_64u_popcntpuppet_64u.h:51
static void volk_64u_popcnt_generic(uint64_t *ret, const uint64_t value)
Definition: volk_64u_popcnt.h:71
static void volk_64u_popcnt_neon(uint64_t *ret, const uint64_t value)
Definition: volk_64u_popcnt.h:115
static void volk_64u_popcntpuppet_64u_generic(uint64_t *outVector, const uint64_t *inVector, unsigned int num_points)
Definition: volk_64u_popcntpuppet_64u.h:31